1

This may well be documented somewhere obvious, but I'm not seeing it. I'm parsing Google News results from RSS, but I'm struggling to get the RSS feed to match what I'm seeing online, with results limited to my country.

I'm in South Africa. To see SA news on a topic, I search for the topic in Google News, then select "Pages from South Africa" in the left menu. Although that option is under "The web", it does limit the news results as well.

However, the RSS link in the page footer goes to the generic (ie: not region-specific) news results as if I hadn't selected "pages from..." at all. I've been playing with the parameters in the feed URL, but I haven't found any way to get it to restrict the RSS results to my region. (Similarly: can't find an option to limit a CSE - custom search engine - the same way).

Any ideas?

4

3 回答 3

1

更新:看起来无法完成 - RSS URL 不遵守与常规搜索相同的规则(“&cr=countryZA”)。操纵查询字符串以获取结果并将结果刮掉,这违反了 Google 的 Ts&Cs。

于 2012-10-23T13:08:34.213 回答
-1

可以这样做:https ://news.google.com/news/feeds?country=AU?geo=2000

上述 URL 会将 RSS 输出限制为澳大利亚悉尼的新闻。

于 2017-04-01T09:28:34.783 回答
-1

您可以使用&geo=usa甚至使用邮政编码,例如&geo=99553

于 2016-11-09T01:45:11.293 回答