Closed vishaalagartha closed 7 months ago
@amywinecoff can you review this PR and see if this fix would resolve the 429 errors? Asking because you seem to have run into this issue in the past.
I did it a bit differently (I maintained session and used exponential backoff), but your version with retries after the suggested time from header works as well.
[What] Introduce
get_wrapper
to handle when there is a Retry-After in the response header. Allows scraping to continue after 429 errors[How] Add
sleep
functionality to pause execution.