Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there CPAN modules that will help me parse an RSS or ATOM feed in Perl?

I need code in Perl for requesting and parsing ATOM and RSS feeds. Is there a CPAN module(s) for that?

like image 250
user47145 Avatar asked Dec 27 '08 18:12

user47145


2 Answers

Almost any time that you ask "How can I do X in Perl?", the answer is to look at CPAN Search to find the module that does it.

To download from the web, the LWP family of modules can help you. To parse the documents, try something with Feed, RSS, or Atom in the name.

Four years later, though, I now recommend Mojolicious, which has its own user agent module and very strong support for DOM parsing and the various ways to pull out parts of a document. Depending on what you want, you probably don't need a special feed module anymore.

like image 114
brian d foy Avatar answered Sep 28 '22 05:09

brian d foy


XML::FeedPP is good ...

like image 35
mjy Avatar answered Sep 28 '22 04:09

mjy