NAME

Catmandu::Importer::Atom - Package that imports Atom feeds

SYNOPSIS

use Catmandu::Importer::Atom;

my $importer = Catmandu::Importer::Atom->new(url => "...");

my $n = $importer->each(sub {
    my $hashref = $_[0];
    # ...
});

METHODS

new(url => URL,[entries => [qw(...)])

Create a new Atom importer for the URL. Optionally provide a entries parameter with the feed items you want to import.

count

each(&callback)

...

Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited. The Catmandu::Importer::Atom methods are not idempotent: Atom feeds can only be read once.

SEE ALSO

Catmandu::Iterable