Automating youtube downloads.
Sometimes I would like to download a set of youtube files, but I do not want to sit and wait for all the downloads. So I created a text file with the video links. Then I set cron job to run a batch file that will automatically download the files at some other time say late at night when I am sleeping. (Good job for an older computer!!) When it is done, you should have a folder of the videos ready to watch at your convenience. Getvids.sh (updated) ----------------------------------------------------------------------------- #================================ # # Get youtube videos # #================================= # Assignments # -------------------------------- if [ -z "$1" ] then datafile="vidlist" else datafile=$1 fi echo "You are using the datafile: $datafile." #================================= # # Data input #--------------------------------- while read line do theurl=$line youtube-dl $theurl -f