且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将 Google 搜索返回到 Python

更新时间:2021-07-31 08:36:28

您可能应该只使用一个可以完成所有繁重工作的库.

You should probably just use a library that does all the hard work.

xGoogle 使您能够在列表中获取搜索结果

xGoogle enables you to get the search results in a list

从例子中,

from xgoogle.search import GoogleSearch
gs = GoogleSearch("quick and dirty")
gs.results_per_page = 50
results = gs.get_results()