Hi All,
We've a VDI infrastructure in AWS (AWS workspaces) and we're planning to automate the process of provisioning workspaces. Instead of going to GUI console, and launching workspaces by selecting individual users is little time consuming. Thus, I want to create them in bunches from AWS CLI... (6 Replies)
Hi,
I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this:
Name =A
xxxxxx
yyyyyy
zzzzzz
aaaaaa
bbbbbb
Value = 57
This is necessary because in a file there are written more lines which... (6 Replies)
Hi there,
I am lil confused with the following issue.
I have a File, which has the following header: IMSHRATE_043008_101016
a sample detailed record is :9820101 A982005000CAVG030108000000000000010169000MAR 2008
9820102 MAR 2008 D030108
... (1 Reply)
Ok well this isn't homework or classwork, I have been done with school for many years. I offered to help my co-worker who's daughter needs help. I didn't realize I had got rid of all of my UNIX books until after I agreed to help. (3 Replies)
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)