我正在使用google search API获取给定搜索关键字的热门搜索URL。该函数中的参数“ stop”应该是输出URL的数量。但是,我尝试使用不同的数字,并且输出始终不一致。有人遇到过吗?
(Python版本:3.6)
示例: “ stop” = 1,但输出为16
from google import search #get top google search urls
searchWord = "automation"
searchList = search(searchWord, stop=1)
for url in searchList:
print(url)
**Output:**
http://marketing-automation.ca/
https://en.wikipedia.org/wiki/Automation
https://en.wikipedia.org/wiki/Category:Automation
https://en.wikipedia.org/wiki/Outline_of_automation
https://en.wikipedia.org/wiki/Automation_technician
https://en.wikipedia.org/wiki/Building_automation
https://www.theglobeandmail.com/business/article-with-automation-threatening-jobs-canada-needs-to-form-an-action-plan/
https://www.theglobeandmail.com/business/commentary/article-automation-presents-a-dual-challenge-for-canada-we-must-take/
https://www.newswire.ca/news-releases/tissue-diagnostics-companies-focus-on-automation-and-partnerships-to-expand-revenues-689905331.html
https://www.marketwatch.com/story/retail-automation-market-2018-global-analysis-business-growth-emerging-technologies-development-status-competitive-landscape-and-revenue-by-forecast-2023-2018-08-02
https://globalnews.ca/news/4105713/automation-workforce-canada-human/
http://brookfieldinstitute.ca/research-analysis/automation/
https://twitter.com/hashtag/automation?lang=en
https://www.investinontario.com/industrial-automation-and-robotics
https://shelley.com/
https://www.innovativeautomation.com/