爬虫时候遇到python connection error max retries exceeded whith url 怎么解决?

 
  
import requests
#关闭多余的连接
s = requests.session()
s.keep_alive = False
#增加重试连接次数
s.adapters.DEFAULT_RETRIES = 511
url = 'https://s.m.taobao.com/search?m=api4h5&nick=%E4%BC%98

你可能感兴趣的:(python,爬虫)