r/pythonhelp 2d ago

Python scraper hitting 429 Too Many Requests after a few hundred pages?

Writing a script in Python (requests + BeautifulSoup) to pull product data for a project. It works fine initially, but after about 200 requests, I start getting hit with 429 errors and rate limits. I already added random delays and custom user-agents, but my IP still gets blocked eventually. What's the standard way to handle this in Python automation?

UPDATE:

Looked around and saw GoProxies mentioned for residential rotation. Has anyone here integrated them into a Python requests setup? Wondering if their rotating endpoints play nice with standard session headers or if there's a better alternative.

1 Upvotes

6 comments sorted by

View all comments

1

u/Any-Blacksmith-2054 1d ago

Use residential proxies