How to add Yahoo or Google RSS feed in your website
Google and Yahoo providing RSS Feed service. it’s used to get the updated news. Now we are going to see how to integrate this kind of Yahoo or Google RSS news feeds on your website.
General News Feed
Yahoo RSS Feeds
https://news.yahoo.com/rss/
Google RSS Feeds
https://news.google.com/news/rss
Custom News Feed
RSS Feed based on Major Topic
https://news.google.com/news/rss/headlines/section/topic/{topic}
Example: Where {topic} is one of the following values: WORLD NATION BUSINESS TECHNOLOGY ENTERTAINMENT SPORTS SCIENCE HEALTH
Any / custom RSS Topic
https://news.google.com/rss/topics/{id}?hl={lang}
Identify the topic ID in its URL, e.g. CAAqIQgKIhtDQkFTRGdvSUwyMHZNR056T1hFU0FtVnVLQUFQAQ, and use the format:
Search query-based RSS Feed
New Google RSS feed link: https://news.google.com/rss/search?q={query} Old Google RSS feed link: https://news.google.com/news/rss/search/section/q/{query}
Replace your search query here {query}
Embed on your website
Above URL return XML structured data or news feed. we can’t directly render the XML data on our website. First, we need to convert XML structure to HTML or we can use some other intermediate tools.
Ways to embed
- Write custom js
- Create a widget or iframe
I will prefer bloople to add Yahoo or Google on your website 🙂