Python 谷歌自定义搜索API-结果不准确

Python 谷歌自定义搜索API-结果不准确,python,google-search,Python,Google Search,我试图使用前面提到的API来获取一个查询的google搜索结果的数量,但是它没有给出正确的结果。我的自定义搜索引擎配置为搜索整个web。例如,如果我搜索“hello”,我会得到113000000个结果。然而,如果我自己在谷歌上这样做,我会得到1340000000。我对这一切都很陌生,所以感觉很失落,有人能帮我吗?谢谢 from googleapiclient.discovery import build import pprint my_api_key = "API KEY" my_cse_i

我试图使用前面提到的API来获取一个查询的google搜索结果的数量,但是它没有给出正确的结果。我的自定义搜索引擎配置为搜索整个web。例如,如果我搜索“hello”,我会得到113000000个结果。然而,如果我自己在谷歌上这样做,我会得到1340000000。我对这一切都很陌生,所以感觉很失落,有人能帮我吗?谢谢

from googleapiclient.discovery import build
import pprint

my_api_key = "API KEY"
my_cse_id = "CSE ID"

def main():
  service = build("customsearch", "v1",
            developerKey = my_api_key)

  res = service.cse().list(q = 'hello', cx= my_cse_id,).execute()
  pprint.pprint(res)

if __name__ == '__main__':
  main()