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

I've never tried it before but what's an easy to use RSS parser? Preferably one that is lightweight, PPM installable and something many web hosts would probably have setup already.

I tried XML::RSS:Parser but it installed a TON of stuff and one of the .ini's wouldn't install so I never got it to work. What's the easiest one to use for someone just getting into RSS parsing?

Replies are listed 'Best First'.
Re: Easy to use RSS parser
by jdporter (Paladin) on Jul 05, 2006 at 14:07 UTC

    For first cuts, I always start with XML::Simple. It chokes on feeds that aren't true XML — which unfortunately happens a lot — but hey, it gives you some validation. ;-)

    We're building the house of the future together.
Re: Easy to use RSS parser
by Anonymous Monk on Jun 23, 2006 at 07:16 UTC
    Okay guys, it's me again. Just to show you what I want to do, I want to read this RSS feed. http://www.humorama.com/rss/daily

    I want to read in each title of joke and then print the description and link for each of them,

      Heya,

      I use a hacked around version of rss2html.pl to update news headlines on our organizational intranet. Uses XML:RSS and LWP::Simple and weighs in at 63 lines. I found it straightforward to modify may be just what you need.
        Uses XML:RSS ... may be just what you need

        Well, except for the bit about having problems installing XML::RSS :-)

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

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

      just getting into RSS parsing
      I want to read this RSS feed
      are two different things for me. Have a look here: XML::RSS.

      XML::RSS::Feed might be for you.

      If you just want to drop something into your webservers cgi-bin, that does read RSS feeds, you might have a look at Tiny Tiny RSS,and if you really want to get into RSS parsing, you could port that to perl, for a start :)

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}