How to Rate Limit Async Requests in Python
Quick tutorial on how to limit asynchronous python connections when web scraping. This can reduce and balance out web scraping speed to avoid scraping pages too fast and blocking.
"Error 1015: You are being rate limited" can be encountered when web scraping websites covered by Cloudflare. This error essentially means your scraper is scraping too fast.
Error 1015: You are being rate limited - Cloudflare
To avoid this error, the scraper should be rate-limited or use a rotating proxy pool. Alternatively, web scraping APIs like ScrapFly can be used to avoid all of the Cloudflare errors.