get URL from XML enclosure

三世轮回 提交于 2019-12-02 17:41:45

问题


http://paultan.org/feed/

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

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.


回答1:


Would this link represent the large image that you see?

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

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">

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...)



来源:https://stackoverflow.com/questions/27699805/get-url-from-xml-enclosure

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!