[wplug] Youtube downloading in Linux with wget?

Zach netrek at gmail.com
Sat Nov 24 21:08:48 EST 2007


Whenever I download an .FLV file from Youtube it seems to only
partially download :(

So I tried using wget (since it has the very nifty "-c" option) but
when I feed in the URL it complains about not being able to find it.

Yet when I use the Fast Video Download extension in Firefox it has no
trouble downloading the file, ie click on Video Downloader and it
prompts me to download the actual filename as in:

http://www.youtube.com/watch?v=Zv0_9IGWFvQ  -> "Merry Christmas Mr.
Bean - pt. 1.flv"

Here are the wget errors:

wget http://www.youtube.com/watch?v=Zv0_9IGWFvQ
results in:  `watch?v=Zv0_9IGWFvQ' saved [118184/118184]

This download just the HTML page in which the video is embeded.

I even tried looking at the From property in the Download box and
feeding that to wget:

zu22 at netrek:~$ wget
http://youtube.com/get_video?video_id=Zv0_9IGWFvQ&t=OEgsToPDskLloOCg2Tiu2xKyotj-flpR
[1] 24143
zu22 at netrek:~$ --21:06:49--  http://youtube.com/get_video?video_id=Zv0_9IGWFvQ
           => `get_video?video_id=Zv0_9IGWFvQ'
Resolving youtube.com... 208.65.153.238, 208.65.153.251, 208.65.153.253
Connecting to youtube.com|208.65.153.238|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
21:06:50 ERROR 404: Not Found.

Anyone have a clue how I can download this with wget or some other FOSS program?

I run Debian testing release with 2.6.18 kernel.

Zach


More information about the wplug mailing list