开发者

HOWTO Programatically construct Google News Search URL so that I can open a new browser window/tab with it

开发者 https://www.devze.com 2023-04-03 22:02 出处:网络
In one of my apps I want to open a new window/tab for a \"google news\" query. Is there an official documentation where I can look up what all different google search parameters mean & what encodi

In one of my apps I want to open a new window/tab for a "google news" query. Is there an official documentation where I can look up what all different google search parameters mean & what encoding I need to do for certain parameters like time-range. I got hold of some unofficial links like this but it is not exhaustive. I dont want to reverse engineer the sample queries that I fired on Google News page.

My goal is to just simply programatically construct the google search url & direct the user to it, I do not want to get just the JSON etc search result else I would h开发者_JAVA技巧ave used the Google News Search API, which BTW is deprecated.


Try this:

http://news.google.co.uk/news?q=appreciated

You can also get an RSS feed:

http://news.google.co.uk/news?q=appreciated&hl=en&prmd=imvns&um=1&ie=UTF-8&output=rss

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号