Margot

The English-Polish Computer Aided Translation System


Introduction  |  Documentation  |  Software  |  Humor  |  Artwork  

 

Youtube downloaders for Linux

 Download

Bash scripts -- utube from 2008-09-20 and multube from 2008-09-20.

Requirements: KDialog (KDE utility).

 What is it?

utube is Youtube video downloader -- single address (URL), single file. multube on the other hand uses utube to rip entire profile page (for example) -- single address, many files.

 How to use it?

Let's say you like this

video (posted by txchou). The addres is http://www.youtube.com/watch?v=kNyfckDtRHM, so you run:

utube "http://www.youtube.com/watch?v=kNyfckDtRHM"

This downloads the video with appropriate filename. The file ("Nadal & Tsonga - Forehand Comparison.flv") already exists? You will be warned about it, but if you don' want to overwrite existing file you can save it with another name:

utube "http://www.youtube.com/watch?v=_VVCiegIGQY" "Nadal & Tsonga - Forehand Comparison 2"

When you look at the txchou profile page you will see a lot of amazing videos. Why not to download them all? Now multube comes handy:

multube "http://www.youtube.com/profile_videos?user=txchou"

this will download first 20 videos from the first page of user's profile.

 Tricks with utube

You can call utube for short like this:

utube "/watch?v=kNyfckDtRHM"<

and if your link comes from google you can download it indirectly, for example:

utube "http://video.google.com/url?docid=-3776522402880539292&esrc=rss_searchfeed&ev=v&len=3134&q=%22google+tech+talks%22%7C%22google+techtalks%22&srcurl=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dy5cY4ioANWQ&vidurl=http%3A%2F%2Fvideo.google.com%2Fvideoplay%3Fdocid%3D-3776522402880539292%26q%3D%2522google%2Btech%2Btalks%2522%257C%2522google%2Btechtalks%2522%26vt%3Dlf&usg=AL29H23DncXnmlQtaE2-MOD2nj0ukTQ3Rw"

 Credits

utube was written by Mr.Paul (script found at Download and watch YouTube videos from Linux shell prompt), only some tweaks are from me -- I wouldn't guess how to hack Youtube video address by myself. "Shell Scripting Recipes" by Chris F.A.Johnson was useful to understand what the hell all those ${x%%x} mean :-) And many thanks to txchou for stunning tennis videos.