NAME
Babble::DataSource::OPML - OPML source fetcher for Babble
SYNOPSIS
use Babble;
use Babble::DataSource::OPML;
my $babble = Babble->new ();
$babble->add_sources (
Babble::DataSource::OPML->new (
-id => "Planet Debian",
-location => "http://planet.debian.net/opml.xml",
-babble => \$babble,
)
);
...
DESCRIPTION
Babble::DataSource::OPML implements an unordinary data source for Babble. Instead of collecting data itself, this class parses an OPML document, and passes the information to a set of Babble::DataSource::RSS objects. For each outline, a new object is created, and the new() method returns an array of Babble::DataSource::RSS objects.
METHODS
- new(%params)
-
Parses the OPML document specified in the -location parameter, and returns an array of Babble::DataSource::RSS objects.
If one wants to use the caching provided by Babble, a reference to the Babble object should be passed in the -babble parameter.
- collect()
-
Returns an error - this should not be called, ever.
AUTHOR
Gergely Nagy, algernon@bonehunter.rulez.org
Bugs should be reported at http://bugs.bonehunter.rulez.org/babble.
SEE ALSO
Babble::DataSource::RSS, Babble::DataSource, Babble::Transport