POE::Component::Client::Feed - Event based feed client
version 0.901
package MyServer; use MooseX::POE; use POE::Component::Client::Feed; has feed_client => ( is => 'ro', default => sub { POE::Component::Client::Feed->new(); } ); event feed_received => sub { my ( $self, @args ) = @_[ OBJECT, ARG0..$#_ ]; my $http_request = $args[0]; my $xml_feed = $args[1]; my $tag = $args[2]; }; sub START { my ( $self ) = @_; $self->feed_client->yield('request','http://news.perlfoundation.org/atom.xml','feed_received','tag'); }
This POE Component gives you like POE::Component::Client::HTTP an event based way of fetching from a feed. It is not made for making consume a feed and only get events on new headlines, for this you can use POE::Component::FeedAggregator which is based on this module, or POE::Component::RSSAggregator.
POE::Component::FeedAggregator
POE::Component::Client::HTTP
XML::Feed
MooseX::POE
POE::Component::RSSAggregator
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::Client::Feed, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::Client::Feed
CPAN shell
perl -MCPAN -e shell install POE::Component::Client::Feed
For more information on module installation, please visit the detailed CPAN module installation guide.