Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: RSS feed grabber

by tangent (Parson)
on Jul 21, 2015 at 15:09 UTC ( [id://1135642]=note: print w/replies, xml ) Need Help??


in reply to RSS feed grabber

Have a look at LWP::Simple, XML::RSS and Text::CSV

Quick start:

use LWP::Simple; use XML::RSS; while ( my $url = <DATA>) { chomp $url; my $xml = get( $url ) or next; my $rss = XML::RSS->new; eval { $rss->parse( $xml ) }; next if $@; for my $item ( @{ $rss->{'items'} } ) { # do stuff with $item } } __DATA__ http://example.com/feed.rss http://example2.com/feed.rdf http://example3.com/feed.xml

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-23 13:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found