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;
i want to add following features to it.
1. add a progress bar window
2. allow user to download multiple videos
3. and in the end i want to make it a setup which will install my application on a machine which doesnt have perl and the modules which i am using in the application. i am a newbie and dont know how to convert perl code to the setup
please suggest me how shall i work on this and also which are the best modules suited for this task
THANKS IN ADVANCE
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.