5 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there, I just switch to MAC and love the way command line do things like mass renaming, unrar, remove .... in terminal, so better than normal graphic apps.
I love to study more about this stuff, could you guys show me some book that help me out,
Simply I see many code like this in internet but... (1 Reply)
Discussion started by: silverhan31
1 Replies
2. Web Development
One of my favorite mashups is the Google search mashup.
You can see it here at the top right hand corner of the site; where you enter a normal Google search work or phrase and Google serves the result, mashedup, back into your site.
The same is true on The CEP Blog, where there the same... (0 Replies)
Discussion started by: Neo
0 Replies
3. What is on Your Mind?
I saw this on another board, and burst out laughing.
http://www.brandsoftheworld.com/brands/0011/0070/brand.gif
Apparently it's a new logo (may even be a new name) for a clothing line.
Check them out: www.A-Style.it (9 Replies)
Discussion started by: Dave Miller
9 Replies
4. What is on Your Mind?
Grand Central Big Freeze
jwMj3PJDxuo
It looks as tho it's movie scene from M. Night Shyamalan :b: (0 Replies)
Discussion started by: sparcguy
0 Replies
5. UNIX for Advanced & Expert Users
Hi all,
I have this very strange (and tiring) trouble with sed (or any command that works with files for that matter)
I need to do the following
1. I have a string say "UTN555"
2. I need to extract just the last three digits
3. I did this
echo UTN555 | sed "s/UTN//"
... (2 Replies)
Discussion started by: linfreak
2 Replies
LEARN ABOUT DEBIAN
www::nicovideo::download
WWW::NicoVideo::Download(3pm) User Contributed Perl Documentation WWW::NicoVideo::Download(3pm)
NAME
WWW::NicoVideo::Download - Download FLV/MP4/SWF files from nicovideo.jp
SYNOPSIS
use WWW::NicoVideo::Download;
my $client = WWW::NicoVideo::Download->new(
email => 'your-email@example.com',
password => 'PASSWORD',
);
$client->download("smNNNNNN", &callback);
DESCRIPTION
WWW::NicoVideo::Download is a module to login, request and download video files from Nico Nico Douga.
METHODS
new
$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 doesn't have the valid session or cookie
to login to the site.
user_agent
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 here.
# use Safari sesssions
use HTTP::Cookies::Safari;
my $cookie_jar = HTTP::Cookies::Safari->new(
file => "$ENV{HOME}/Library/Cookies/Cookies.plist",
);
my $client = WWW::NicoVideo::Download->new;
$client->user_agent->cookie_jar( $cookie_jar );
download
$client->download($video_id, $file_path);
Prepares the download by logging in and requesting the FLV API, and then download the video file. The second parameter is passed to
LWP::UserAgent's request() method, so you can pass either local file path to be saved, or a callback function.
prepare_download
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.
AUTHOR
Tatsuhiko Miyagawa <miyagawa@cpan.org>
Original download code for Plagger was written by Yusuke Wada and the command line tool written by woremacx.
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
perl v5.10.1 2010-03-26 WWW::NicoVideo::Download(3pm)