Using requests.Session() avoids having to re-establish the connection with each call.
We were running up against throttling, and the infinite retries solved the problem. At most we've retried twice, although a max iteration check could be implemented.
Using requests.Session() avoids having to re-establish the connection with each call.
We were running up against throttling, and the infinite retries solved the problem. At most we've retried twice, although a max iteration check could be implemented.