Homepage: http://linuxhelp.150m.com/


How To Download youtube Videos.


The other day I needed to download a youtube clip. On searching the internet, I came across this site:

http://www.arrakis.es/~rggi3/youtube-dl/

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

http://www.arrakis.es/~rggi3/youtube-dl/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 for 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: b386b8218b049ede0df6052c1a759f84 (updated 02/02/2008)

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