Cant parse media content
还没有人认领这个 Issue。
评估
调研方向
使用提供的 Independent RSS URL 和 media:content 示例,通过 RSS::Parser.parse 重现失败,然后跟踪在迭代 rss.items 时如何处理该元素。当无需出现所报告的错误即可解析媒体内容,并且可以如示例所示访问其 URL 时,该 issue 即完成。
由索引模型根据 Issue 内容生成。
描述
I have been trying to parse media content and don't seem to be able to capture it. I can get the basics but trying to get something like the url of the image below throws an error.
<media:content url="https://static.independent.co.uk/s3fs-public/thumbnails/image/2020/03/10/14/payday-loans-5.jpg" type="image/jpeg" medium="image"/>
Example of code I'm trying.
require 'rss'
rss = RSS::Parser.parse('http://www.independent.co.uk/rss', false)
rss.items.each do |item|
puts "#{item.title}"
puts "#{item.media_content.url}"
end
- 主要语言
- Ruby
- 星标
- 206
- 派生
- 39
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ruby/rss 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 48/100
-
难度 5/5 一周以上 新手友好度 20/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 25/100
-
难度 3/5 1-2 天 新手友好度 35/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
TheOdinProject/curriculum#31417 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 65/100
glossarist/glossarist-ruby#238 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
palladius/rails8-app-on-gcp#145 ·