predictive-punter / punters_client

Python client library for www.punters.com.au
MIT License
6 stars 3 forks source link

Retry HTTP Requests #31

Closed justjasongreen closed 8 years ago

justjasongreen commented 8 years ago

Currently, any error in a HTTP request will cause an exception that terminates the calling process. Barring exceptional circumstances, most of these errors can be resolved quickly by simply retrying the request.

Update the Scraper.get_html method such that it will retry failed HTTP requests a certain number of times before raising the exception.