Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Writing a simple RSS feed 'grabber' with XML::Parser.

by Anonymous Monk
on Apr 15, 2007 at 01:31 UTC ( [id://610131]=note: print w/replies, xml ) Need Help??


in reply to Writing a simple RSS feed 'grabber' with XML::Parser.

Try XML::RAI
#!/usr/bin/perl -w use strict; use LWP::Simple 'get'; use XML::RAI; my $rss = XML::RAI->parse(get(shift||die"please enter rss uri")); my $title = $rss->channel->title; my $link = $rss->channel->link; print "$title\n$link\n\n"; for my $item (@{$rss->items}) { $title = $item->title; $link = $item->link; print "$title\n$link\n"; }
Also see XML::RSS::SimpleGen

Replies are listed 'Best First'.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://610131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2024-04-23 19:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found