POE::Component::FeedAggregator - Watch multiple feeds (Atom or RSS) for new headlines
version 0.902
package MyServer; use MooseX::POE; use POE::Component::FeedAggregator; has feedaggregator => ( is => 'ro', default => sub { POE::Component::FeedAggregator->new(); } ); event new_feed_entry => sub { my ( $self, @args ) = @_[ OBJECT, ARG0..$#_ ]; my $feed = $args[0]; # POE::Component::FeedAggregator::Feed object of the feed my $entry = $args[1]; # XML::Feed::Format::* object of the new entry }; sub START { my ( $self ) = @_; $self->feedaggregator->add_feed({ url => 'http://news.perlfoundation.org/atom.xml', # required name => 'perlfoundation', # required delay => 1200, # default value entry_event => 'new_feed_entry', # default value }); }
POE::Component::Client::Feed
POE::Component::FeedAggregator::Feed
XML::Feed
MooseX::POE
Torsten Raudssus <torsten@raudssus.de>
This software is copyright (c) 2010 by Raudssus Social Software.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install POE::Component::FeedAggregator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::FeedAggregator
CPAN shell
perl -MCPAN -e shell install POE::Component::FeedAggregator
For more information on module installation, please visit the detailed CPAN module installation guide.