开发者

How do I make a website that can search google? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not cur开发者_开发百科rently accepting answers.

Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist

Closed 9 years ago.

Improve this question

How do I make a website search google, and then return the resulting URLs to the page without taking the user to google?


Have a look on google custom search api

http://code.google.com/apis/customsearch/v1/overview.html


What you would normally do in this situation is to employ an API provided by the vendor of the service you wish to consume or present to your customers; but AFAIK Google provides no API for searches, considering the fact that, by and large, searches is what Google Does™.

You could of course submit regular HTTP searches to http://google.com and scrape the resulting HTML for the results; but that method is extremely liable to breakage if they change their markup; and you risk getting reamed by Google's legal team.

Reamed hard.

Edit: Re: API I stand corrected; it appears you actually have a choice: Pay out your nose, or risk breakage and reaming.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜