GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  XML::RSS::HEADLINE (3)

.ds Aq ’

NAME

XML::RSS::Headline - Persistant XML RSS Encapsulation

CONTENTS

VERSION

2.32

SYNOPSIS

Headline object to encapsulate the headline/URL combination of a RSS feed. It provides a unique id either by way of the URL or by doing an MD5 checksum on the headline (when URL uniqueness fails).

CONSTRUCTOR

XML::RSS::Headline->new( headline => CW$headline, url => CW$url )

XML::RSS::Headline->new( item => CW$item )

A XML::RSS::Headline object can be initialized either with headline/url or with a parse XML::RSS item structure. The argument ’headline_as_id’ is optional and takes a boolean as its value.

METHODS

CW$headline->id

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 guid from rss, the URL or a MD5 checksum generated from the headline text (if <B>B>$headline<B>->headline_as_idB> is true);

CW$headline->guid

The unique id used by RSS, set if its available. The ’id’ method return guid or url if guid is not available.

CW$headline->multiline_headline

This method returns the headline as either an array or array reference based on context. It splits headline on newline characters into the array.

CW$headline->item( CW$item )

Init the object for a parsed RSS item returned by XML::RSS.

CW$headline->set_first_seen

CW$headline->set_first_seen( Time::HiRes::time() )

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().

CW$headline->first_seen

The time (in epoch seconds) of when the headline was first seen.

CW$headline->first_seen_hires

The time (in epoch seconds and milliseconds) of when the headline was first seen.

GET/SET ACCESSOR METHODS

CW$headline->headline

CW$headline->headline( CW$headline )

The rss headline/title. HTML::Entities::decode_entities is used when the headline is set. (not sure why XML::RSS doesn’t do this)

CW$headline->url

CW$headline->url( CW$url )

The rss link/url. URI->canonical is called to attempt to normalize the URL

CW$headline->description

CW$headline->description( CW$description )

The description of the RSS headline.

CW$headline->headline_as_id

CW$headline->headline_as_id( CW$bool )

A bool value that determines whether the URL will be the unique identifier or the if an MD5 checksum of the RSS title will be used instead. (when the URL doesn’t provide absolute uniqueness or changes within the RSS 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 RSS feed (www.debianplanet.org / debianplanet.org / search.cpan.org,search.cpan.org:80)

CW$headline->timestamp

CW$headline->timestamp( Time::HiRes::time() )

A high resolution timestamp that is set using Time::HiRes::time() when the object is created.

AUTHOR

Jeff Bisbee, <jbisbee at cpan.org>

BUGS

Please report any bugs or feature requests to bug-xml-rss-feed at rt.cpan.org, 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.

SUPPORT

You can find documentation for this module with the perldoc command.



    perldoc XML::RSS::Headline



You can also look for information at:
o AnnoCPAN: Annotated CPAN documentation

<http://annocpan.org/dist/XML-RSS-Feed>

o CPAN Ratings

<http://cpanratings.perl.org/d/XML-RSS-Feed>

o RT: CPAN’s request tracker

<http://rt.cpan.org/NoAuth/Bugs.html?Dist=XML-RSS-Feed>

o Search CPAN

<http://search.cpan.org/dist/XML-RSS-Feed>

ACKNOWLEDGEMENTS

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.

Thanks to Aaron Krowne for patch to use guid as the unique id instead of url if its available.

COPYRIGHT & LICENSE

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.

SEE ALSO

XML::RSS::Feed, XML::RSS::Headline::PerlJobs, XML::RSS::Headline::Fark, XML::RSS::Headline::UsePerlJournals, POE::Component::RSSAggregator
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 XML::RSS::HEADLINE (3) 2013-07-25

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.