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.
Response status code 499 is a rare status code which means that the server has unexpectedly closed the connection. In web scraping, this most likely means that the server has identified that the client is a web scraper and decided to stop serving content. Repeated 499 status codes can likely lead to a complete scraper block, so these errors should be addressed ASAP.
To prevent scrapers from being identified see our complete how to scrape without being blocked guide that covers technologies used in identifying web scrapers and how to fortify against them.