代码之家  ›  专栏  ›  技术社区  ›  snakile

使用Python的Google搜索

  •  3
  • snakile  · 技术社区  · 14 年前

    this question 我已经学会了如何使用Python 3进行google搜索。但在这里给出的示例中,您只能检索前4个结果。我需要检索关于前25个结果的信息(至少)。

    对于每个结果,我都希望能够得到:

    我该怎么做?

    我正在使用Python3.1

    2 回复  |  直到 8 年前
        1
  •  2
  •   kindall    14 年前

    This thread 应该告诉你你需要知道的。简而言之,添加 &rsz=large &start=8 (或16、24等)从指定的数字开始获取结果。在任何情况下都不能超过64,有些搜索只允许8。

        2
  •  1
  •   poke    14 年前

    JSON/Atom Custom Search API 如果有必要,可以使用 start 参数接收您感兴趣的所有结果。