开发者

How to search with Google API?

开发者 https://www.devze.com 2023-03-13 19:53 出处:网络
I would like to do a custom program that search on Google, I read there are APIs to do the queries, but Google is asking me a \"website\", I don\'t have a website, I 开发者_JAVA技巧only want to search

I would like to do a custom program that search on Google, I read there are APIs to do the queries, but Google is asking me a "website", I don't have a website, I 开发者_JAVA技巧only want to search on Google by a program that i'm developing in PHP (PHP_CLI).

How Can I use these APIs?


Not sure that you really mean, if you want to add Google Search into your HTML page, why don't you just create a form in which the action is pointed to Google Search?

<form method="get" action="http://www.google.com/search">
    <input type="text" name="q" size="31" maxlength="255" value="" />
    <input type="submit" value="Google Search" />
    <input type="radio"  name="sitesearch" value="" />The Web
    <input type="radio"  name="sitesearch" value="yourdomain.com" checked /> My Site
</form>

Read: http://www.askdavetaylor.com/how_can_i_add_a_google_search_box_to_my_web_site.html

Is that what you're asking?

0

精彩评论

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