Android——如何从 RSS 提要中获取完整的文章?
嗯,我正在学习 Android RSS Feeds 解析,我有一个问题。假设我正在使用 Goal.com RSS feed 并显示在我的 Android 手机上。
Goal.com RSS 源:http://www.goal.com/en-us/feeds/news?fmt=rss
但正如您从 Rss feed 中看到的,它们只是包含 2 - 3 行描述的文章标题。我想知道有什么方法可以在解析提要后从中获取完整的文章。任何指导我的指示都会有帮助。谢谢
Well I am learning Android RSS Feeds parsing, and I have a question. Consider I am using Goal.com RSS feed and displaying on my Android phone.
Goal.com RSS Feed : http://www.goal.com/en-us/feeds/news?fmt=rss
But as you can see from the Rss feeds, they are only the headlines of the article containing 2 - 3 lines of the description. I was wondering is there any way I can get the complete article from it after parsing the feeds. Any pointers to guide me would be helpful . Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,如果 RSS 源不包含完整的文章,则没有简单的方法来获取它。您可以查看每个项目的
link
标签,在网络上找到它,然后进行一些屏幕抓取,但这很快就会变得丑陋。Unfortunately, if the RSS feed doesn't contain the full article, there isn't an easy way to get it. You can look at the
link
tag for each item to find it on the web and then do some screen scraping, but that gets ugly fast.@克利夫顿是正确的。即使通过这种性质,我们也可以从自动海报插件中保存我们的帖子。此外,您还可以找到内容所在的目标网页的常见模式。您可以通过编程方式提取该内容区域。
@Clifton is correct. Even by this nature we can save our posts from autoposter plugins. Besides you can find the common pattern of your target web page where contents resides. You can etract that area of content programmatically.