您好,我正在使用以下代码检查查询在Google上获得了多少结果:
from google import google
num_page = 10
file = input("Please give the file you would like to test:")
with open(file, 'r', encoding="ISO-8859-1") as inputf:
for line in inputf:
search_results = google.search(line, num_page)
print(search_results.number_of_results)
问题是该模块似乎不支持通过代理连接,并且Google禁令非常快,我的问题是:我可以将此模块与代理一起使用吗?