【发布时间】:2017-02-09 02:19:49
【问题描述】:
我正在尝试在搜索后获取 Google 横幅中的信息。我更详细地解释了自己,我想要获得的不是 Google 的第一个链接或描述,而是让您直接访问信息的 Google 横幅。
示例:您在搜索栏中输入“PSG Team”,Google 将直接显示当前球队,而无需导航到其他网站。
我目前正在使用 Google-Search-API python 模块,但无法检索包含必要信息的横幅。
这是我的代码:
from google import google
num_page = 1
search_results = google.search("psg team", num_page)
for result in search_results:
print (result.banner) #banner propriety doesn't exist but this is what I want
谢谢!
【问题讨论】:
标签: python google-search