【发布时间】:2016-12-02 18:57:25
【问题描述】:
我想使用 python 脚本在 Google 中搜索文本并返回每个结果的名称、描述和 URL。我目前正在使用此代码:
from google import search
ip=raw_input("What would you like to search for? ")
for url in search(ip, stop=20):
print(url)
这仅返回 URL。如何返回每个 URL 的名称和描述?
【问题讨论】:
-
您使用了哪个谷歌搜索 API?
标签: python python-2.7 google-search