[wplug] Youtube downloading in Linux with wget?

James O'Kane jo2y at midnightlinux.com
Sat Nov 24 21:51:46 EST 2007


On Sat, 24 Nov 2007, Zach wrote:

> 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

This should be a clue. There is an & in the url so you need to quote it. 
Otherwise, the first part of the url is put into the background.

> 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
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>


More information about the wplug mailing list