from googlesearch import search
Queries = ['a','b','c']
for Query in Queries:
for url in search(Query, tld="com", num=10, stop=1, pause=2):
print url
I thought that the param num determines the number of links I should receive, but I seem to get a different number every time I run this. Most of the times it's 10, but not always. Any explanations?
答案 0 :(得分:0)
您是否尝试将only_standard参数设置为True
?根据我链接的问题,看来可以为用户解决问题。
另外,请记住,该模块使用Google Search Legacy API(如here所述),因此结果可能与您手动搜索Google时看到的结果有所不同。