我可以获得文章标题和描述等新闻数据,但是如何使用feedzilla API获得新闻图像。
API文档中未提及任何内容
http://w.feedzilla.com/api-overview
发布于 2014-01-20 06:54:23
当你得到你的文章列表(例如http://api.feedzilla.com/v1/categories/26/articles.json)时,你可以看到其中一些文章有一个叫做‘enclosure’的属性,feedzilla在这个属性中放置了一篇文章的可能图片的信息。例如,一篇包含JSON图像的文章:
{"enclosures":[{"length":3489,"media_type":"image\/jpeg","uri":"http:\/\/news.com.au.feedsportal.com\/c\/34564\/f\/632403\/e\/1\/s\/36174fe5\/l\/0Lresources30Bnews0N0Bau0Cimages0C20A140C0A10C190C122680A50C4485310Erosetta0Bjpg\/448531-rosetta.jpg"}],"publish_date":"Sun, 19 Jan 2014 14:00:00 +0100","source":"Cnet","source_url":"http:\/\/feeds.feedburner.com\/newscomauworldnewsndm","summary":"ONE of the most ambitious missions in the history of space goes into high-risk\u000amode today when a comet-chasing probe wakes up.\u000a\u000a\u000a\u000a\u000a\u000a\u000a\u000a\u000a","title":"Comet-chasing probe to wake up (Cnet)","url":"http:\/\/news.feedzilla.com\/en_us\/stories\/top-news\/353840990?client_source=api&format=json"}请注意,此属性是可选的。
https://stackoverflow.com/questions/14797727
复制相似问题