Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to get bing and google news search as rss?

Is there a way to get Google and Bing news searches as RSS?

I'd like to have the most recent at the top of the results (ordered by time) if possible.

And show 100 results if that is possible.

I found this for Google, but it only shows 5 items or so, not that great.

https://news.google.com/news/feeds?output=rss&q=politics

I just want to search their news categories and get results as RSS.

like image 802
chovy Avatar asked Dec 23 '13 06:12

chovy


2 Answers

You are right that Google no longer publicly shows RSS feeds for News searches. But there's a basic URL format that should continue to work.

If my search topic is "education", my search URL should look like:

https://news.google.com/news/section?cf=all&ned=us&q=education

Replace:

  • value of ned (probably stands for 'news edition'), i.e. us with the appropriate country code that's relevant to you. E.g. uk (not gb for UK), in (India), etc.

  • value of q (probably stands for 'search query'), i.e. education with your search term. Combine multiple words with a plus sign, e.g. education+policy (if your search is for 'Education Policy').

Now the RSS feed button in your browser should've become active because an RSS feed is available for the page. It shows 10 latest news items in the feed, not 5. And the RSS feed URL would look like this:

https://news.google.com/news/feeds?cf=all&ned=us&hl=en&q=education&output=rss

Conclusion: RSS feeds aren't available for actual searches, i.e. typing in the search box on Google. You'd have to do it like this.

(PS: Credit goes to the question itself. It would not have occurred to me otherwise.)

like image 151
its_me Avatar answered Oct 24 '22 21:10

its_me


Try adding

&output=rss
https://news.google.com/news/section?cf=all&ned=us&q=education**&output=rss**
like image 26
guest Avatar answered Oct 24 '22 21:10

guest