how to get images for news feed app

2019-05-25 03:47发布

问题:

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.