15

我想将 Google API 用于您的意思是功能。所以基本上我想写一段代码,它将一个词发送到谷歌搜索,谷歌要么找到确切的命中,要么给出一个我会使用的“你是不是故意的”回复。

它是否可用?试图找到它,但找不到。

4

1 回答 1

15

所以我投入了一些时间,这就是我发现的

1/ 你应该有你的自定义搜索引擎

https://cse.google.com

2/ 将其配置为搜索所有网站

https://support.google.com/customsearch/answer/2631040?hl=en

3/ 根据文档查询该引擎

https://developers.google.com/custom-search/json-api/v1/using_rest

拼写/如果可能的话,您的意思是维修吗?可以在“拼写”部分找到。(不相关部分已删除)。Fox ex:我在这里搜索了“devart”

{
  "kind": "customsearch#search",
  "url": {
    },
  "queries": {
    "request": [
      
    ]
  },
  "context": {
    
  },
  "searchInformation": {
    
  },
  "spelling": {
    "correctedQuery": "deviantart",
    "htmlCorrectedQuery": "<b><i>deviantart</i></b>"
  },
  "items": [
    
  ]
}

当他们在网站上允许这些问题时,我也有同样的问题并且它也被否决了。您可能想在此处阅读有关自动完成 API 的信息

https://stackoverflow.com/questions/40061449/google-auto-correct-api

谷歌搜索自动完成 API?

于 2016-10-29T06:20:19.100 回答