ashim888 / awis

A python script to query Amazon's Alexa Web Information Service (AWIS).
GNU General Public License v3.0
37 stars 18 forks source link

Implement session & infinite retries #22

Closed BradWaite closed 5 years ago

BradWaite commented 5 years ago

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.