Dear all,
Being a ruby-newbie (is that a ruwbie?), i can't seem to find out how to parse a <media:content> (or for that matter, any other tag actually) out of a rss/2.0 feed.
What i have is this (stolen from the web, btw):
<code>
require 'rss/2.0'
require 'open-uri'
url='http://www.flickr.com/services/feeds/photos_public.gne?id=51035555243@N01&format=rss_200'
open(url) do |http|
response = http.read
result = RSS::Parser.parse(response, false)
puts "Channel: #{result.channel.title}"
result.items.each do |item|
puts "#{item.title} (#{item.description})"
end
end
</code>
I think i'm looking for something like a generic equivalent to item.title, is that possible?
Thanks a lot,
···
--
- Pieter