python 报错 requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
当python requests报错:requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
可以 request请求时添加allow_redirects=False
默认时allow_redirects=True
resp = requests.get(url=url, headers=headers,allow_redirects=False)
博客:http://mylike.ltd