Youtube python magic

*repost for archiving purposes*

NB THIS IS INTENDED FOR DEBIAN LINUX
BUT MAY ALSO WORK ON OTHER DISTRIBUTIONS

In this video we’ll be using python curl and youtube-dl to download the latest videos from your favourite channels.

sudo apt-get install python curl
install this too – http://rg3.github.com/youtube-dl/

make a dir in your home folder …
~/yt-downloads
~/yt-downloads/downloads

copy the script into
~/yt-downloads

edit the downloadpath variable in the script to match the directory you just made
/home/USER/yt-downloads/downloads/

DONT FORGET THE FORWARD STROKE

Run the script by issuing the following command …
python script.py hakology

DOWNLOAD THE V1.0 SCRIPT FROM HERE …
http://pastebin.com/Vjr4sJgv

V1.1 HERE …
http://pastebin.com/BGAAVshM
modified for playlists by advancednewbie
(usage has changed on this version call the script with the -h option for all options)

Big shout out to advanced newbie for suggesting this idea.