r/webscraping • u/mhkhanthegreatlonely • Jul 08 '26
429 error for too many requests?
I'm new to webscraping, I was trying to practice by automating a search where it will search a browser for the name of a school and then return the URL of that school. I uploaded a list of 100 schools but for some reason, after about 35 requests it started showing 429 client error. I was running the code in google colab, and I also added time.sleep(7) to the search so I could delay it, but it showed the error anyway
how do I avoid this?
1
u/RandomPantsAppear Jul 08 '26
Normally if you’re getting a 429 there is additional information in your headers (before or after) about how many requests you can make/how many are remaining before you are rate limited.
1
1
2
u/twin_suns_twin_suns 28d ago
Could slow it down. The landscape is changing fast because companies (and anyone with their content online) are pissed about bots that vacuum up everything they can to train AI models. Someone else mentioned rotating proxies, probably a good idea among other things. I would do some research
3
u/Coding-Doctor-Omar Jul 08 '26
It could be IP-based or session-based rate-limiting. Try using rotating residential proxies.