The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::RSS2Leafnode -- post RSS or Atom feeds and web pages to newsgroups

SYNOPSIS

 use App::RSS2Leafnode;
 my $r2l = App::RSS2Leafnode->new;
 exit $r2l->command_line;

DESCRIPTION

This is the guts of the rss2leafnode program, see rss2leafnode for user-level operation.

FUNCTIONS

$exitcode = App::RSS2Leafnode->command_line ()
$exitcode = $r2l->command_line ()

Run the rss2leafnode program command line. Arguments are taken from @ARGV and the return value is an exit code suitable for exit.

$r2l = App::RSS2Leafnode->new (key=>value,...)

Create and return a new RSS2Leafnode object. Optional keyword parameters are the config variables, plus verbose

    verbose                   => integer
    render                    => flag or name
    render_width              => integer
    rss_get_links             => flag
    rss_newest_only           => integer
    rss_charset_override      => flag
    html_charset_from_content => flag
$r2l->fetch_rss ($newsgroup, $url)
$r2l->fetch_html ($newsgroup, $url)

Fetch an RSS feed or HTTP web page and post articles to $newsgroup. This is the fetch_rss and fetch_html operations for ~/.rss2leafnode.conf.

fetch_html can in fact fetch any target type, not just HTML. fetch_html on an RSS feed would drop the whole XML into a news message, whereas fetch_rss turns it into a message per item.

SEE ALSO

rss2leafnode, XML::Twig

HOME PAGE

http://user42.tuxfamily.org/rss2leafnode/index.html

LICENSE

Copyright 2007, 2008, 2009, 2010, 2011, 2012 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/.