【问题标题】:Search a list of terms from google using python 2.7使用 python 2.7 从谷歌搜索术语列表
【发布时间】:2017-12-07 20:53:45
【问题描述】:

我已经关注了这个 SO 问题Searching in Google with Python 并按照答案号中的说明执行。 2. 我使用 pip install Google-Search-API,然后执行以下代码:

从谷歌导入谷歌
num_page = 3
search_results = google.search("农业", num_page)

但即使在成功安装 API 后,我仍然收到导入错误

【问题讨论】:

    标签: python-2.7


    【解决方案1】:

    我认为你必须使用这个google module。更多信息,here

    【讨论】:

    • 安装此模块后,我也遇到了同样的错误
    【解决方案2】:

    我在问题中发布的代码适用于 python 3。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多