Net::NicoVideo::UserAgent - Decorate LWP::UserAgent with requests to access to Nico Nico Douga
use LWP::UserAgent; use Net::NicoVideo::UserAgent; my $ua = Net::NicoVideo::UserAgent->new( LWP::UserAgent->new # or other custom UA by your own needs ); # $flv is a Net::NicoVideo::Response::Flv my $flv = $ua->request_flv("smNNNNNNNN"); # Net::NicoVideo::Response is decorated with HTTP::Response $flv->is_success
Decorate LWP::UserAgent with requests to access to Nico Nico Douga.
Net::NicoVideo::Decorator Net::NicoVideo::Request Net::NicoVideo::Response
To install Net::NicoVideo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::NicoVideo
CPAN shell
perl -MCPAN -e shell install Net::NicoVideo
For more information on module installation, please visit the detailed CPAN module installation guide.