Howto Download youtube Videos.

Homepage: webng.com/linuxhelp


 How To Download youtube Videos 


A few years ago, I needed to download a youtube clip. On searching the internet, I came across a site, which is now at,

http://bitbucket.org/rg3/youtube-dl/wiki/Home/

that provides a Python script, youtube-dl, that does the job very well. You can download it from here:

http://bitbucket.org/rg3/youtube-dl/raw/2010.04.04/youtube-dl or local copy.

Most Linux installations will already have Python installed, so you just need to do the following:

 bunzip2 youtube-dl.bz2  (only if you downloaded the local copy)
 chmod +x youtube.dl
 mv youtube.dl /usr/bin

To verify the download, check the MD5 sum:

 md5sum youtube.dl

It should be, MD5: 6c3e2982b5a46ede4fd5d6e6ed280331 (updated 04/04/2010)

You use youtube-dl as follows:

 youtube-dl http://www.youtube.com/watch?v=aUKLOlIhang

This particular youtube clip (from 911speakout.org) proves, yet again, that 9/11 was an inside job.

If you do not have permission to move youtube.dl to the directory /usr/bin. Just go to the directory where it is saved and run it as follows:

 ./youtube.dl http://www.youtube.com/watch?v=aUKLOlIhang

In both cases, the video will be saved in the directory that you issued the command from. To watch it, enter:

 mplayer aUKLOlIhang.flv

or use one of the other Linux movie players.

For the command line options, type:

 youtube-dl -h

An older version of this page can be found here.