☆ 5 r/python ·by Jordan ·2026-09-30 How do you keep a scraper polite at 50 concurrent requests? 1289 views I am fetching about 5000 pages. With 50 concurrent requests I got 429s after a few minutes. With 5 it takes forever. What is a reasonable pattern? ⧉ Copy link⚑ Report
☆ 0 C Chloe ·2026-09-30#1 Read Retry-After, add exponential backoff with jitter, and keep a per-host semaphore. Even 10 concurrent requests can be too much if the site is small. ⧉ Copy link⚑ Report
☆ 0 J Jordan ·2026-09-30#2 The site has no Retry-After header, just 429 with an empty body. ⧉ Copy link⚑ Report
☆ 0 F Felix ·2026-09-30#3 Back off to 5 concurrency for that host, wait 5 then 15 then 45 seconds, and stop after three failures. Also check robots.txt before scraping at all. ⧉ Copy link⚑ Report
3 replies