App::RSS2Leafnode -- post RSS or Atom feeds and web pages to newsgroups
use App::RSS2Leafnode; my $r2l = App::RSS2Leafnode->new; exit $r2l->command_line;
This is the guts of the
rss2leafnode program, see rss2leafnode for user-level operation.
App::RSS2Leafnode object could be used for Perl-level scripting of some downloads.
$exitcode = App::RSS2Leafnode->command_line ()
$exitcode = $r2l->command_line ()
rss2leafnode program command line. Arguments are taken from
@ARGV and the return value is an exit code suitable for
$r2l = App::RSS2Leafnode->new (key=>value,...)
Create and return a new RSS2Leafnode object. Optional keyword parameters are the config variables plus
verbose => integer rss_get_links => flag 0 or 1 rss_get_comments => flag 0 or 1 render => flag 0 or 1 or name render_width => integer get_icon => flag 0 or 1 html_extract_main => flag 0 or 1 user_agent => string rss_newest_only => integer or string rss_charset_override => flag 0 or 1 html_charset_from_content => flag 0 or 1
$r2l->fetch_rss ($newsgroup, $url, key=>value...)
$r2l->fetch_html ($newsgroup, $url, key=>value...)
Fetch an RSS feed or HTTP web page and post articles to
$newsgroup. This is the
fetch_html() operations for ~/.rss2leafnode.conf.
fetch_html() can fetch any target type, not just HTML and puts it into a single message. On an RSS feed
fetch_html() would drop the whole XML into one message, whereas
fetch_rss() turns it into a message per item.
Copyright 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Kevin Ryde
RSS2Leafnode is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
RSS2Leafnode is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with RSS2Leafnode. If not, see http://www.gnu.org/licenses/.