Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: using WWW::YouTube::Download?

by frozenwithjoy (Curate)
on Jun 19, 2012 at 00:59 UTC ( #976936=note: print w/ replies, xml ) Need Help??


in reply to using WWW::YouTube::Download?

Given the YouTube url http://www.youtube.com/watch?v=sP4NMoJcFd4, the $video_id is sP4NMoJcFd4.

UPDATE... The following was sufficient to d/l that video (and it played successfully using VLC). I also used some of the other calls successfully, so it seems like all is working well with this module.

#!/usr/bin/env perl use strict; use warnings; use WWW::YouTube::Download; my $video_id = "sP4NMoJcFd4"; my $client = WWW::YouTube::Download->new; $client->download($video_id);


Comment on Re: using WWW::YouTube::Download?
Select or Download Code
Re^2: using WWW::YouTube::Download?
by Anonymous Monk on Sep 27, 2012 at 18:56 UTC
    I tried this code to download a youtube video and got the message: !! http://www.youtube.com/watch?v=XlZhEvsQmWQ&cc=1 download failed: 403 Forbidden at C:\...\perlDownloader.pl line 8 If you can offer some suggestions to prevent this negative response, I would appreciate.
      I re-ran the code I posted in June (that definitely worked in June) and I'm getting a 403 error, too. Perhaps YouTube is blocking downloading of videos in this manner.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://976936]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2014-08-21 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (128 votes), past polls