Max retries exceeded with URL in requests
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Max retries exceeded with URL in requests
Just use
requests
features:This will
GET
the URL and retry 3 times in case ofrequests.exceptions.ConnectionError
.backoff_factor
will help to apply delays between attempts to avoid to fail again in case of periodic request quota.Take a look at
urllib3.util.retry.Retry
, it has many options to simplify retries.