5 More Discussions You Might Find Interesting
1. Solaris
Am new to using Solaris. I wanna know about some of highly re usable and powerful scripts in tcsh. A kind of generic scripts.
can anyone please help me out with any links or functions ??
Thanks in advance (8 Replies)
Discussion started by: Rahul619
8 Replies
2. UNIX for Advanced & Expert Users
Hai
I wolud like to know how to get the latest files.
ex:
file_ssss_00
file_ssss_01
i need to get file_ssss_01 files only. (in Unix script)
Please give some idea ... (2 Replies)
Discussion started by: raju4u
2 Replies
3. UNIX for Dummies Questions & Answers
hi all,
someone tell me which is the latest object oriented, easy to use and handle, Unix version/release and from where to get it.
have my thanks in advance if you ll also mention some good books regarding Unix's administration and use for a perfect newbie. (7 Replies)
Discussion started by: irfanets
7 Replies
4. UNIX for Advanced & Expert Users
hi all,
someone tell me which is the latest object oriented, easy to use and handle, Unix version/release and from where to get it.
have my thanks in advance if you ll also mention some good books regarding Unix's administration and use for a perfect newbie. (1 Reply)
Discussion started by: irfanets
1 Replies
5. Shell Programming and Scripting
what is way to not move a latest file in a a particular folder X.
There are number of files in the folder, I donot want to move the latest file into another folder.
Can anyone figure out where is wrong in the script.
lastfile=$(ls -rt | tail -1)
for allfile in $(ls | grep -v... (4 Replies)
Discussion started by: u263066
4 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)