WWW::Youtube - Youtube interface.
Usage:
use WWW::Youtube;
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
my $youtube = WWW::Youtube->new( username => USERNAME@gmail.com, password => PASS);
Youtube interface
$youtube->login;
Login to the Youtube account with the username and password provided. You MUST call this function before call any other function.
my $video_file = 'fun.mp4'; my $title = "my title final"; my $description = "my content final"; my $category = 'Comedy'; $id = $youtube->upload_video($title,$description,$category, $video_file); print "url http://www.youtube.com/watch?v=$id \n";
Upload a video
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install WWW::Youtube, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Youtube
CPAN shell
perl -MCPAN -e shell install WWW::Youtube
For more information on module installation, please visit the detailed CPAN module installation guide.