ansh batra has asked for the wisdom of the Perl Monks concerning the following question:
hello monks
i have created a very basic youtube downloader
#!/usr/bin/perl use WWW::YouTube::Download; my $client = WWW::YouTube::Download->new; my $video_id='http://www.youtube.com/watch?v=q1wK0r51ARs'; my $video_url = $client->get_video_url($video_id); my $suffix = $client->get_suffix($video_id); my $title = $client->get_title($video_id); print "Downloading video $title\n"; $client->download($video_id, { filename => 'vedios//{title}.{suffix}', # maybe `video_title.mp4 +` }); print "Download Complete\n"; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::YouTube::Download progress bar,multi-threading and installer?
by Anonymous Monk on Jan 30, 2013 at 17:30 UTC | |
by ansh batra (Friar) on Jan 30, 2013 at 17:39 UTC |