WebFetch::Input::Atom - get headlines for WebFetch from Atom feeds
version 0.1.0
This is an input module for WebFetch which accesses an Atom feed. The --source parameter contains the URL of the feed.
From the command line:
perl -w -MWebFetch::Input::Atom -e "&fetch_main" -- --dir directory --source atom-feed-url [...WebFetch output options...]
In perl scripts:
use WebFetch::Input::Atom; my $obj = WebFetch->new( "dir" => "/path/to/fetch/workspace", "source" => "http://search.twitter.com/search.atom?q=%23twiki", "source_format" => "atom", "dest" => "dump", "dest_format" = "/path/to/dump/file", ); $obj->do_actions; # process output $obj->save; # save results
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
Atom is an XML format defined at http://atompub.org/rfc4287.html
WebFetch::Input::Atom uses Perl's XML::Atom::Client to parse Atom feeds.
WebFetch https://github.com/ikluft/WebFetch
Please report bugs via GitHub at https://github.com/ikluft/WebFetch/issues
Patches and enhancements may be submitted via a pull request at https://github.com/ikluft/WebFetch/pulls
Ian Kluft <https://github.com/ikluft>
This software is Copyright (c) 1998-2022 by Ian Kluft.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install WebFetch::Input::Atom, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebFetch::Input::Atom
CPAN shell
perl -MCPAN -e shell install WebFetch::Input::Atom
For more information on module installation, please visit the detailed CPAN module installation guide.