Tommy has asked for the wisdom of the Perl Monks concerning the following question:

I'm parsing headlines from various news feeds to show on a website. What are the best solutions out there? So far my experience with XML::RAI and XML::RSS::Parser are less than ideal in terms of the interface remaining consistent (XML::RAI) and sucking resources like a pig/hanging (XML::RSS::Parser)

Your opinions are greatly appreciated.

--
Tommy
  • Comment on Looking for opinions: what's the best module for parsing RSS?

Replies are listed 'Best First'.
Re: Looking for opinions: what's the best module for parsing RSS?
by xdg (Monsignor) on Nov 19, 2006 at 01:58 UTC

    I wrote 'Best RSS modules and techniques?' last year and didn't get much new insight from the answers. But maybe someone has come up with something since then.

    You might look at Plagger and see how it does it.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Re: Looking for opinions: what's the best module for parsing RSS?
by BaldPenguin (Friar) on Nov 20, 2006 at 03:50 UTC
    I discovered the XML::RSS::Feed and was extremely impressed. It has a built-in caching mechanism and handles standard RSS feeds really well. It is also built for sub-classing on custom feeds like the examples enclosed in the build and the XML::RSS::Headline::PerlMonks which took about 15 minutes to customize for the PerlMonks feed. Check it out.

    Don
    WHITEPAGES.COM | INC
    Everything I've learned in life can be summed up in a small perl script!
Re: Looking for opinions: what's the best module for parsing RSS?
by davorg (Chancellor) on Nov 21, 2006 at 10:56 UTC

    I've always been happy with XML::RSS - I've been using it (most often via Template::Plugin::XML::RSS) for years. What problems do the newer modules solve that this one doesn't?

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

Re: Looking for opinions: what's the best module for parsing RSS?
by spatterson (Pilgrim) on Nov 21, 2006 at 10:33 UTC
    Last time I used XML::RSSLite for reading regular rss feeds plus XML::RSS::Parser to generate an extra feed.

    just another cpan module author
Re: Looking for opinions: what's the best module for parsing RSS?
by appletag (Initiate) on Nov 21, 2006 at 13:14 UTC
    I'm new to Perl and was looking for something to grab headlines from an RSS feed to put into a .txt file. The text is read into a ticker across a video screen in stores. Found this: http://hail2u.net/rss/perlscripts/rss2txt.pl. Works really well for me.
Re: Looking for opinions: what's the best module for parsing RSS?
by Tommy (Chaplain) on Nov 21, 2006 at 22:56 UTC

    Thank you all for your excellent insight, ladies and gentlemonks. I'm going to have lots of fun testing out all of your suggestions. =D

    --
    Tommy