问题
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:
- A different newsfeed service that will give news article images
- A way to fetch news article images with feedzilla or
- 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