README for XML-RSS-TimingBot
Time-stamp: "2004-04-24 01:22:57 ADT"
NAME
XML::RSS::TimingBot -- for efficiently fetching RSS feeds
SYNOPSIS
use XML::RSS::TimingBot;
$browser = XML::RSS::TimingBot->new;
my $response = $browser->get(
'http://interglacial.com/rss/cairo_times.rss'
# or whatever feed
);
... And process $response just as if it came from
a plain old LWP::UserAgent object, for example: ...
if($response->code == 200) { # 200 = "okay, here it is"
...process it...
} elsif($response->code == 304) { # 304 = "Not Changed"
# do nothing
} else {
print "Hm, couldn't access it: ", $response->status_line, "\n";
}
$browser->commit; # Save our history. Don't forget!!
DESCRIPTION
If you use LWP::UserAgent for fetching RSS/RDF feeds, use XML::RSS::TimingBot instead! XML::RSS::TimingBot has the same interface, but knows when to more efficiently request the data.
DETAILED DESCRIPTION
XML::RSS::TimingBot is for requesting RSS feeds only as often as needed.
This class does this in two ways:
[continued in the documentation for this module, which you can read with perldoc]
INSTALLATION
You install this Perl module, as you would install any Perl module library, by running these commands:
perl Makefile.PL
make
make test
make install
If you want to install a private copy of this module in your home directory, then you should try to produce the initial Makefile with something like this command:
perl Makefile.PL PREFIX=~/perl
See "perldoc perlmodinstall" for more information and advice.
This module doesn't depend on XML::RSS, nor in fact have any particular relationship with it.