L
lists
Hi,
I'm playing around with lib/rss and am having difficulty getting the
<content:encoded> tags. Here's what I mean:
###
require 'rss/2.0'
require 'rss/content'
require 'open-uri'
feed = 'http://docs.info.apple.com/rss/allproducts.rss'
open(feed) { |http|
rss = RSS:arser.parse(http.read, false)
p rss.items[1]
}
###
The above code shows this:
#<RSS::Rss::Channel::Item:0x6bce08 @pubDate=Fri Nov 04 13:54:02 CST
2005, @link="http://docs.info.apple.com/article.html?artnum=61798",
@do_validate=false, @guid=nil, @comments=nil, @category=[],
@author=nil, @description="Release date: Fri, 4 Nov 2005 13:54:02
-0600", @enclosure=nil, @title="Apple security updates",
@converter=nil, @source=nil>
Note that @content is missing. If I curl http://docs.info.apple.com/
rss/allproducts.rss I see that there are <content:encoded> tags. Any
ideas what I need to do to be able to get @content in the
RSS::Rss::Channel::Item object?
Thanks,
Ryan
I'm playing around with lib/rss and am having difficulty getting the
<content:encoded> tags. Here's what I mean:
###
require 'rss/2.0'
require 'rss/content'
require 'open-uri'
feed = 'http://docs.info.apple.com/rss/allproducts.rss'
open(feed) { |http|
rss = RSS:arser.parse(http.read, false)
p rss.items[1]
}
###
The above code shows this:
#<RSS::Rss::Channel::Item:0x6bce08 @pubDate=Fri Nov 04 13:54:02 CST
2005, @link="http://docs.info.apple.com/article.html?artnum=61798",
@do_validate=false, @guid=nil, @comments=nil, @category=[],
@author=nil, @description="Release date: Fri, 4 Nov 2005 13:54:02
-0600", @enclosure=nil, @title="Apple security updates",
@converter=nil, @source=nil>
Note that @content is missing. If I curl http://docs.info.apple.com/
rss/allproducts.rss I see that there are <content:encoded> tags. Any
ideas what I need to do to be able to get @content in the
RSS::Rss::Channel::Item object?
Thanks,
Ryan