Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

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

NAME
WWW::Topica::Index - parse a single Topic mailing list index SYNOPSIS
my $index = WWW::Topic::Index->new($index_html); foreach my $mess_id ($index->message_ids) { # the mail has some information and also provides a link to the reply ... my $mail = WWW::Topica::Mail->new($topica->fetch_mail($mess_id), $mess_id); # which has other information (like the un-htmled mail and the email address) ... my $reply = WWW::Topica::Reply->new($topica->fetch_reply($mail->id, $mail->eto), $mail->id, $mail->eto); } print "Next offset is ".$index->next." "; print "Previous offset is ".$index->prev." "; DESCRIPTION
Used to parse a single index page from Topica.com's mailing list indexes. METHODS
new <page html> parse <html> Parse the html to get message ids and next & prev offsets. message_ids Return all the messge ids found on the page prev Return the offset of the previous page or undef if there is none. next Return the offset of the next page or undef if there is none. AUTHOR
Simon Wistow <simon@thegestalt.org> COPYRIGHT
Copyright (c) 2004, Simon Wistow perl v5.10.1 2006-01-03 WWW::Topica::Index(3pm)

Check Out this Related Man Page

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

NAME
WWW::IndexParser - Fetch and parse the directory index from a web server SYNOPSIS
use WWW::IndexParser; my @files = WWW::IndexParser->new(url => 'http://www.example.com/dir/'); foreach my $entry (@files) { printf "%s %s ", $entry->filename, scalar(localtime($entry->time)||''); } DESCRIPTION
WWW::IndexParser is a module that uses LWP to fetch a URL from a web server. It then atempts to parse this page as if it were an auto generated index page. It returns an array of WWW::IndexParser::Entry objects, one per entry in the directory index that it has found. Each Entry has a set of methods: filename(), time(), size(), and others if supported by the autoindex generated: type() and size_units(). CONSTRUCTOR
new ( url => $url, timeout => $seconds, proxy => $proxy_url, debug => 1 ) When called with a URL to examine, this method does not return an object, but an array of WWW::IndexParser::Entry obects, one per entry in the directory listing that was accessed. The options to this are: url The complete URL of the index to fetch. timeout The timeout for the request to fetch data, default 10 seconds. proxy A proxy server URL, eg, 'http://proxy:3128/'. debug Decide if to print parsing debug information. Set to 0 (the default) to disable, or anything non-false to print. Recommened you use a digit (ie, 1) as this may become a numeric 'level' of debug in the future. METHODS
All methods are private in this module. Pass only a URL to the constructor, and it does everything for you itself. PREREQUISUTES
This modile depends upon "LWP", "HTML::Parser", "Time::Local". OSNAMES
any BUGS
Currently only supports Apache, IIS and Tomcat style auto indexes. Send suggestions for new Auto-Indexes to support to the author (along with sample HTML)! AUTHOR
James Bromberger <james@rcpt.to> COPYRIGHT
Copyright (c) 2006 James Bromberger. All rights reserved. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.0 2008-06-23 WWW::IndexParser(3pm)
Man Page