The server redirects you in a loop. You need to find out why you are being redirected so often.
You can try to figure out what happens without allowing redirects (set allow_redirects=False ) and then resolving them using the .resolve_redirects() API :
>>> import requests >>> url = 'http://httpbin.org/redirect/5'
redirect objects are the correct answers; print from them what you need to understand why you get into the redirect cycle; perhaps the server provides hints in the headers or body.
source share