我正在尝试从python应用程序运行谷歌搜索查询.有没有任何python接口可以让我这样做?如果没有人知道哪个Google API可以让我这样做.谢谢.
我在Python中编写了一个模块,该模块将查询Google的Custom Search API并返回域名'example.com'的所有列表
我一直在https://code.google.com/apis/customsearch/v1/getting_started.html上阅读相关说明,目前有点难过.
下面列出的假设是否正确?
例如,要搜索URL中包含"example.com"的结果,查询为:
*的 'https://www.googleapis.com/customsearch/v1键= my_key&CX = 017576662512468239146:omuauf_lfve&Q =网站:example.com'*
*key = my_key:*谷歌给出的密钥值
cx = 017576662512468239146:搜索引擎的名称(谷歌)?它是否正确?
*omuauf_lfve:*我不知道这是什么
q = site:example.com:这应该返回'example.com'的所有结果; 例如www.a.example.com,b.example.com,example .com