1
我试图读取这个ATOM Feed(http://ffffound.com/feed),但我无法获得任何定义为命名空间的一部分的值,例如媒体:内容和媒体:缩略图。用自定义命名空间解析Ruby中的ATOM
我需要让分析器知道名称空间吗?
这里就是我已经得到了:
require 'rss/2.0'
require 'open-uri'
source = "http://ffffound.com/feed"
content = ""
open(source) do |s| content = s.read end
rss = RSS::Parser.parse(content, false)