Can I set max_retries for requests.request?
It is the underlying urllib3 library that does the retrying. To set a different maximum retry count, use alternative transport adapters: The max_retries argument takes an integer or a Retry() object; the latter gives you fine-grained control over what kinds of failures are retried (an integer value is turned into a Retry() instance which only handles connection failures; errors after a connection is made … Read more