hacks/scrape-jwztv/fetchVideos.sh

14 lines
256 B
Bash
Raw Normal View History

2022-01-09 11:56:45 +00:00
#!/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"