XML::RSS::Headline::PerlMonks is a Perl module that extends the base XML::RSS::Headline package which is used by XML::RSS::Feed to parse and optionally cache the RSS feed from perlmonks.org. Optionally this module can be used inside the POE::Component::RSSAggregator module as one of many feeds to monitor.
SYNOPSIS
use XML::RSS::Feed;
use XML::RSS::Headline::PerlMonks;
use LWP::Simple qw(get);
my $feed = XML::RSS::Feed->new(
'name' => 'newmonknodes',
'url' => 'http://perlmonks.org/index.pl?node_id=30175;xmlstyle=rss',
'hlobj' => 'XML::RSS::Headline::PerlMonks',
'tmpdir' => '/tmp', # for caching
);
while (1) {
$feed->parse( get( $feed->url ) );
for my $post ( $feed->late_breaking_news ) {
print "New perlmonks posting from " . $post->authortitle . "
";
print "Category: " . $post->category . "
";
print "Subject: " . $post->headline . "
";
print "Link: " . $post->url . "
";
}
sleep( $feed->delay );
}
Product's homepage
Requirements:
· Perl