Build an RSS reader with headline images

I am building an online RSS reader. I want to be able to display images as well as article titles and descriptions.

I am using google feeds API from CNN( http://rss.cnn.com/rss/edition.rss) to read the RSS feed. In the feed I got, I cannot find the link to the corresponding image anywhere.

Sample JSON result :

XML node:

I know that other RSS readers, such as Feedly, can display relevant images of each article:
http://www.feedly.com/ home#subscription/feed/http://rss.cnn.com/rss/edition.rss

I tried to grab the actual CNN page, hoping to pull the image directly from there. However, I read The html page is missing the image/video I am interested in.

I have been trying to solve this problem.. I think the image link should be included in the’content’ field of the rss entry?

Any help would be greatly appreciated. Thank you!

The RSS reader can only display the received data (obviously). View the feed you provided The original XML, there is no image link in any tag. Obviously, it is not a required field. A simple reader, which is built by most people, will not display the image of the feed.

If Feedly is displaying an image, it is more than just displaying the source (the provided link redirects to their homepage, so I can’t see it).

Your initial idea is correct The feed usually contains the image, or better yet, it is included in the content (see http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&output=rss for any description tags).

Off-topic, your JSON image is too small to read without greatly magnifying the page. Hope this is not just me.

I am building an online Rss reader. I want to be able to display images as well as article titles and descriptions.

I am using google feeds API from CNN (http://rss.cnn.com/rss /edition.rss) Read the RSS feed. In the feed I got, I cannot find the link of the corresponding image anywhere.

Sample JSON result:

XML node:

I know that other RSS readers, such as Feedly, can display relevant images for each article:
http://www.feedly.com/home#subscription/feed/http://rss .cnn.com/rss/edition.rss

I tried to grab the actual CNN page, hoping to pull the image directly from there. However, the html page I read is missing the image/video I am interested in .

I have been trying to solve this problem.. I think the image link should be included in the’content’ field of the rss entry?

Any help would be greatly appreciated. Thank you!

The RSS reader can only display the received data (obviously). Look at the raw XML of the feed you provided, no pictures are included in any Links. Tags. Obviously, it is not a required field. A simple reader, which is built by most people, will not display the image of the feed.

If Feedly is displaying the image, it More than just showing the source (the provided link redirects to their homepage, so I can’t see it).

Your initial idea is correct. Feeds usually contain images, or better yet, It is included in the content (see any description tags in http://news.google.com/news?pz=1&cf=all&ned=us&hl=en&output=rss).

Off-topic, your The JSON image is too small to read without greatly magnifying the page. Hope it’s not just me.

Leave a Comment

Your email address will not be published.