forked from sneak/hacks
14 lines
256 B
Bash
14 lines
256 B
Bash
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
INPUTFILE="$DIR/all.txt"
|
|
DESTDIR="/Volumes/EXT/tmp/jwztv-youtube-scrape"
|
|
|
|
while IFS= read -r SEARCHTERM; do
|
|
cd $DESTDIR
|
|
yt-dlp "ytsearch:$SEARCHTERM"
|
|
done < "$INPUTFILE"
|