how to get images for news feed app

孤街浪徒 提交于 2019-12-22 18:47:24

问题


I'm developing a news feed app for ios, and I'm using Feedzilla news API. I have the news feed api correctly implemented, but Feedzilla only returns the news summary and other meta data, but not any images for the news article. So now I have to figure out a different way to get the news article images to display in my app. Does anyone know of either:

  1. A different newsfeed service that will give news article images
  2. A way to fetch news article images with feedzilla or
  3. A way to fetch image thumbnails from a web page

Thanks.


回答1:


Are you getting url of the article/news as metadata after parsing the feed?

If yes.

Now using this URL you can read whole content of the news page and using any DOM parser you can read image url as well.



来源:https://stackoverflow.com/questions/11532740/how-to-get-images-for-news-feed-app

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