Persistant xml rss encapsulation
2.2
Headline object to encapsulate the headline/URL combination of a \s-1RSS\s0 feed. It provides a unique id either by way of the \s-1URL\s0 or by doing an \s-1MD5\s0 checksum on the headline (when \s-1URL\s0 uniqueness fails).
A XML::RSS::Headline object can be initialized either with headline/url or with a parse \s-1XML::RSS\s0 item structure. The argument 'headline_as_id' is optional and takes a boolean as its value.
\$1
The id is our unique identifier for a headline/url combination. Its how we can keep track of which headlines we have seen before and which ones are new. The id is either the \s-1URL\s0 or a \s-1MD5\s0 checksum generated from the headline text (if $headline->headline_as_id is true); This method returns the headline as either an array or array reference based on context. It splits headline on newline characters into the array. Init the object for a parsed \s-1RSS\s0 item returned by \s-1XML::RSS\s0. Set the time of when the headline was first seen. If you pass in a value it will be used otherwise calls Time::HiRes::time(). The time (in epoch seconds) of when the headline was first seen. The time (in epoch seconds and milliseconds) of when the headline was first seen.
The rss headline/title. HTML::Entities::decode_entities is used when the headline is set. (not sure why \s-1XML::RSS\s0 doesn't do this) The rss link/url. \s-1URI-\s0>canonical is called to attempt to normalize the \s-1URL\s0 The description of the \s-1RSS\s0 headline. A bool value that determines whether the \s-1URL\s0 will be the unique identifier or the if an \s-1MD5\s0 checksum of the \s-1RSS\s0 title will be used instead. (when the \s-1URL\s0 doesn't provide absolute uniqueness or changes within the \s-1RSS\s0 feed)
This is used in extreme cases when URLs aren't always unique to new healines (Use Perl Journals) and when URLs change within a \s-1RSS\s0 feed (www.debianplanet.org / debianplanet.org / search.cpan.org,search.cpan.org:80) A high resolution timestamp that is set using Time::HiRes::time() when the object is created.
Jeff Bisbee, \*(C`<jbisbee at cpan.org>\*(C'
Please report any bugs or feature requests to \*(C`bug-xml-rss-feed at rt.cpan.org\*(C', or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=XML-RSS-Feed>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc XML::RSS::Headline
You can also look for information at:
<http://annocpan.org/dist/XML-RSS-Feed>
<http://cpanratings.perl.org/d/XML-RSS-Feed>
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=XML-RSS-Feed>
<http://search.cpan.org/dist/XML-RSS-Feed>
Special thanks to Rocco Caputo, Martijn van Beers, Sean Burke, Prakash Kailasa and Randal Schwartz for their help, guidance, patience, and bug reports. Guys thanks for actually taking time to use the code and give good, honest feedback.
Copyright 2006 Jeff Bisbee, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
XML::RSS::Feed, XML::RSS::Headline::PerlJobs, XML::RSS::Headline::Fark, XML::RSS::Headline::UsePerlJournals, POE::Component::RSSAggregator