我正在用 Python 编写一个模块,该模块将查询 Google 的自定义搜索 API 并返回域“example.com”的所有列表
我一直在阅读https://code.google.com/apis/customsearch/v1/getting_started.html上的说明,现在有点难过。
我下面列出的假设是否正确?
例如,要搜索 URL 中包含“example.com”的结果,查询是:
*'https://www.googleapis.com/customsearch/v1?key=my_key&cx=017576662512468239146:omuauf_lfve&q=site:example.com'*
* key=my_key:* google 给出的键值
cx=017576662512468239146:搜索引擎的名称(谷歌)?这个对吗?
* omuauf_lfve:*我不知道这是什么
q=site:example.com:这应该返回所有带有“example.com”的结果;例如 www.a.example.com、b.example.com、example.com