XML::RSS::TimingBot

For efficiently fetching RSS feeds
Download

XML::RSS::TimingBot Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Sean M. Burke
  • Publisher web site:
  • http://search.cpan.org/~sburke/

XML::RSS::TimingBot Tags


XML::RSS::TimingBot Description

For efficiently fetching RSS feeds XML::RSS::TimingBot is a Perl module for requesting RSS feeds only as often as needed.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, " "; } $browser->commit; # Save our history. Don't forget!! Requirements: · Perl


XML::RSS::TimingBot Related Software