使用python 2.7搜索谷歌中的术语列表

时间:2017-07-04 11:40:34

标签: python-2.7

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

来自google import google的

    num_page = 3
    search_results = google.search(" Agriculture",num_page)

但即使在成功安装API之后,我也会收到导入错误 enter image description here enter image description here

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

我在问题中发布的代码与python 3一起工作正常。

相关问题