WaitReSS::Feed - A RSS feed
version 0.003
This class represents a RSS feed.
The url (a string) to which the RSS item is pointing to. Required.
The feed status.
The feed title.
The feed description.
my $feed = WaitReSS::Feed->new_from_directory( $dir );
Return a new WaitReSS::Feed loaded with information located in $dir (a Path::Tiny object).
$dir
my $str = $feed->as_string;
Return a string representation of the feed, with its main information.
my $md5sum = $feed->id;
Return a md5 sum of the feed url.
my $count = $feed->nb_items;
Return the $count of items currently in the feed.
$count
my @items = $feed->items;
Return the @items (WaitReSS::Item objects) currently in the feed.
@items
$feed->save;
Save the feed main information to be retrieved later on.
my $inserted = $feed->update;
Force $feed to download its feed, parse it and store new items. Return the number of new items stored.
$feed
Jerome Quelin <jquelin@gmail.com>
This software is copyright (c) 2013 by Jerome Quelin.
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 WaitReSS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WaitReSS
CPAN shell
perl -MCPAN -e shell install WaitReSS
For more information on module installation, please visit the detailed CPAN module installation guide.