WebFetch::Input::RSS - download and save an RSS feed
In perl scripts:
use WebFetch::Input::RSS;
From the command line:
perl -w -MWebFetch::Input::RSS -e "&fetch_main" -- --dir directory --source rss-feed-url [...WebFetch output options...]
This module gets the current headlines from a site-local file.
The --input parameter specifies a file name which contains news to be posted. See "FILE FORMAT" below for details on contents to put in the file. --input may be specified more than once, allowing a single news output to come from more than one input. For example, one file could be manually maintained in CVS or RCS and another could be entered from a web form.
After this runs, the file site_news.html will be created or replaced. If there already was a site_news.html file, it will be moved to Osite_news.html.
site_news.html
Osite_news.html
RSS is an XML format defined at http://www.rssboard.org/rss-specification
WebFetch::Input::RSS uses Perl's XML::RSS to parse RSS "Really Simple Syndication" version 0.9, 0.91, 1.0 or 2.0, whichever is provided by the server.
WebFetch was written by Ian Kluft Send patches, bug reports, suggestions and questions to maint@webfetch.org.
maint@webfetch.org
To install WebFetch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebFetch
CPAN shell
perl -MCPAN -e shell install WebFetch
For more information on module installation, please visit the detailed CPAN module installation guide.