From: Kouhei Sutou Date: 2010-01-04T22:34:17+09:00 Subject: Re: RSS and images Hi, In "RSS and images" on Mon, 4 Jan 2010 08:20:15 +0900, Christopher Galtenberg wrote: > Using the default Ruby RSS parser, which format is best suited to > pulling in images from feed elements, RSS2 or Atom? > > And then, how do I use the RSS classes to pull those images, per feed > element? I am not finding examples, and the api is a bit baroque. rss20 = RSS::Parser.parse(rss20_xml) image = rss20.channel.image puts image.url if image and image.url atom = RSS::Parser.parse(atom_xml) logo = atom.feed.logo puts logo.content if logo and logo.content Thanks, -- kou