7

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.

Kara
  • 6,115
  • 16
  • 50
  • 57
chovy
  • 72,281
  • 52
  • 227
  • 295

6 Answers6

8

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.)

its_me
  • 10,998
  • 25
  • 82
  • 130
3

Try adding

&output=rss
https://news.google.com/news/section?cf=all&ned=us&q=education**&output=rss**
Jeroen
  • 60,696
  • 40
  • 206
  • 339
guest
  • 49
  • 1
3

The custom RSS feed is in this format:

https://news.google.com/news/feeds?q={yourquery}&output=rss.  

For example, https://news.google.com/news/feeds?q=developer&output=rss returns news about developer.

dur
  • 15,689
  • 25
  • 79
  • 125
2

Your best bet is somthing like Google Alerts feeds. You can type a query select the type of data in there and get it delivered via RSS. Since they support PubSubHubbub for that, you will also get results in realtime.

If you want another dataset feel free to also check Superfeedr's track feeds which will help you get notified in realtime when keywords are matched across any RSS feed.

Julien Genestoux
  • 31,046
  • 20
  • 66
  • 93
0

I think Google disabled the RSS search output in the past few weeks, and I have not found an alternative. The XML output requires a Google paid account. I now have to scrape the HTML for what I want.

Bruce Momjian
  • 61
  • 1
  • 2
  • Oh, I see now. The original question was about news "feeds", while my problem is getting RSS results from google News _searches_. – Bruce Momjian Jan 23 '14 at 23:30
  • 2
    i'm getting news searches as rss. `https://news.google.com/news/feeds?output=rss&q=whatever` – chovy Jan 24 '14 at 03:43
  • 1
    Wow, that was very helpful. I now see that http://news.google.com/news/*feeds* supports RSS output, while http://www.google.com/*search* is the one that just stopped RSS support. Yeah, no more HTML scraping! – Bruce Momjian Jan 24 '14 at 17:25
-1

Here's the new way to access Google News RSS feeds:

https://news.google.com/news/rss/search/section/q/{yourquery}

Prasanna
  • 1,617
  • 1
  • 17
  • 22