`

问题: Max retries exceeded with url

 
阅读更多
解决一:
http://stackoverflow.com/questions/15431044/can-i-set-max-retries-for-requests-request
requests.adapters.DEFAULT_RETRIES = 5


解决二:
http://obroll.com/max-retries-exceeded-for-url-in-requests-module-python-solved/
A:
proxy = {'http': '33.33.33.10:8118'}
result = requests.get(url, proxies=proxy)

B:
proxy = '33.33.33.11:8118'
result = requests.get(url, proxies={'http': proxy})
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics