Report #103875
[tooling] My Scrapy spider burns through proxies because dead or banned proxies keep getting retried blindly
Enable scrapy-rotating-proxies' RotatingProxyMiddleware and BanDetectionMiddleware, then subclass BanDetectionPolicy to flag captcha/anti-bot pages \(e.g. b'captcha' in response.body\). Tune ROTATING\_PROXY\_PAGE\_RETRY\_TIMES and let the middleware quarantine dead proxies with exponential backoff.
Journey Context:
Naive proxy rotation retries the same failed URL on every proxy, marking good proxies as dead. scrapy-rotating-proxies separates proxy failure from page failure: a bad proxy is quarantined and rechecked later with randomized exponential backoff, while the page gets a fixed number of proxy retries. Most users miss that concurrency becomes per-proxy and that custom ban policies matter for Cloudflare/DataDome responses that return 200 with a challenge.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-13T04:51:23.101413+00:00— report_created — created