如何使用 google feed API 解析 feedburner xml 并在网站上显示
我有一个来自 Wordpress 并流经 Feedburner 的提要。我想从 Feedburner 获取提要并在我的网站上显示节点值,如下所示:
标题
描述
音频链接
评论计数 ()
google feed API 是否允许我抓取媒体 encosure url ???或者它限制了你能抓住的东西?
I have a feed coming from Wordpress and flowing through Feedburner. I would like to take the feed from Feedburner and display node values on my website like such:
Title
Description
Audio Link
Comment Count ()
Will the google feed API allow me to grab the media encosure url??? or is it limited to what you can grab?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要首先从 WordPress 创建自定义提要和提要模板,因为这是 Feedburner 刻录的任何提要的来源。
要完成此操作,请参阅以下文章,该文章将引导您完成整个过程,“如何用 12 行代码在 WordPress 中创建自定义 RSS 源”。
一旦您阅读了这篇文章,只需刻录一个新的提要即可完成。
You'll need to first create a custom feed and feed template from WordPress since this is the source of any feed burned by Feedburner.
To get it done please see the following article that walks you through the whole process, "How to Create a Custom RSS Feed in WordPress in 12 Lines of Code".
Once you've followed the article simply burn a new feed and you're done.
如果它是 XML feed 的一部分,那么您可以抓取它并将其显示在您的网站上。
您可以在此处粘贴来自 feed 的 xml 源示例吗?这将说明一切。 (一种方法是在 ie 中打开 feed url...它通常会显示源)
If it's part of the XML feed, then you can grab it and show it on your website.
Can you paste a sample of the xml source from the feed here? That will tell all. (One way of doing this is to open the feed url in ie... it usually shows the source)