$client = WWW::NicoVideo::Download->new(%options);
Creates a new WWW::NicoVideo::Download instance. %options can take the following parameters and they can also be set and get using accessor methods.
|email, password||Sets and gets email and password to login Nico Nico Douga. Required if the User Agent object doesnt have the valid session or cookie to login to the site.|
Sets and gets LWP::UserAgent object to use to send HTTP requests to
nicovideo.jp server. If you want to reuse the browser Cookie that has
the signed-in state, you can set the Cookie to the UserAgent object
Prepares the download by logging in and requesting the FLV API, and then download the video file. The second parameter is passed to LWP::UserAgents request() method, so you can pass either local file path to be saved, or a callback function.
my $url = $client->prepare_download($video_id);
Prepares the download and returns the URL of the actual video. See eg/fetch-video.pl how to make use of this method.
Tatsuhiko Miyagawa <email@example.com>
Original download code for Plagger was written by Yusuke Wada and the command line tool written by woremacx.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|perl v5.20.3||WWW::NICOVIDEO::DOWNLOAD (3)||2010-03-26|