从 XML 附件中获取 URL [英] get URL from XML enclosure

查看:43
本文介绍了从 XML 附件中获取 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://paultan.org/feed/

在上面的提要中,我可以得到像 http://s2.paultan.org/image/2014/12/Theo-top-10-fave-renders-108x108.jpg

In above feed I can get the img ur like http://s2.paultan.org/image/2014/12/Theo-top-10-fave-renders-108x108.jpg

但在 feedly.com 中,我看到了其他更大尺寸的图像链接.我想知道提要如何检索 的内容,因为它不在提要的 DOM 中.

but in feedly.com I'm seeing other link of image, which have bigger size. I wonder how feedly can retrieve the 's content since it's not in the feed's DOM.

推荐答案

此链接是否代表您看到的大图?

Would this link represent the large image that you see?

http://s1.paultan.org/image/2014/12/top-10-posts.jpg

feedly.com 可能会读取目标页面一次并将其保存在他们的数据库中.从标题中,您有一个 Facebook 条目,如下所示:

feedly.com may be reading the destination page once and save it in their database. From the header you have a Facebook entry as follow:

<meta content="http://s1.paultan.org/image/2014/12/top-10-posts.jpg"
      property="og:image">

feedly.com 将使用哪个来呈现图像.当然,这意味着要使用更多带宽才能显示此类信息.他们也可能将其限制为具有此类标题的网站(因此他们会测试一两次,如果网站不提供像 og:image 这样的链接,他们会完全停止测试该网站,至少对于一会儿……)

which feedly.com would be using to present the image. This, of course, means a lot more bandwidth used in order to be able to display such information. They may also limit it to websites that have such headers (so they test once or twice, if the website does not offer a link like the og:image, they stop testing that website altogether, at least for a while...)

这篇关于从 XML 附件中获取 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆