max-redirect limit not supported to pass as parameter - Takes too long to exceed default redirection limit (=30)
parth-gm opened this issue · comments
Panchal Parth commented
To set max_redirects we have to create requests.Session() object.
session = requests.Session()
session.max_redirects = 3
session.get(url)