TooManyRedirects error occurs when the request redirects continuously. By default, requests has a limit of 30 redirects.