Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

www::topica(3pm) [debian man page]

WWW::Topica(3pm)					User Contributed Perl Documentation					  WWW::Topica(3pm)

NAME
WWW::Topica - read emails from a Topica mailing list SYNOPSIS
my $topica = WWW::Topica->new( list => 'mylist', login => 'mylogin', password => 'mypass' ); while (my $mail = $topica->mail) { Email::LocalDelivery->deliver($mail, 'mylist.mbox'); } DESCRIPTION
This module screen scrapes the Topica website and fetches back RFC822 text representations of all the mails posted to a given list. Where possible it fills in the from, to and date fields. It should be noted that in some cases it's impossible to get both the sender name and their email address. METHODS
new Takes three options, the list name, your login account and your password; You can also pass in "local" and "debug". "debug" will print out various debugging messages whereas "local" will use local files for testing. "local" automatically sets "debug" to 1 unless debug is explicitly set to 0. Furthermore if you pass in a "first" option the parsing will start from that offset. A "last" lets you set an upper bound. mail Returns a mail at a time Logs in automatically. login Logs in to Topica and stashes the cookie. Called automatically by the first call to "mail". Builds the loader automatically. fetch_index <offset> Retrieve the html of the index page with the given offset. fetch_mail <id> Retrieve the html of a the message page with the given id. fetch_reply <id> <eto> Retrieve the html of a the reply page with the given id and eto. build_rfc822 <WWW::Topic::Mail> <WWW::Topica::Reply> Given a "WWW::Topic::Mail" object and a "WWW::Topica::Reply" object build up the text of an RFC822 compliant email. build_loader Set up the LWP::UserAgent object used to fetch pages. fetch_page <url> Utility function for getting a page with various niceties. AUTHOR
Simon Wistow <simon@thegestalt.org> COPYRIGHT
Copyright (c) 2004, Simon Wistow perl v5.10.1 2006-01-03 WWW::Topica(3pm)

Check Out this Related Man Page

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)
Man Page