AI development/GitHub/Tool
polite-fetch
by mthburnsbarber-web·Last observed 2026-10-26
★ 0 stars⑂ 0 forks
Polite Fetch is a Node fetch wrapper for crawlers that checks robots.txt, queues requests per host and respects rate-limit or bot-challenge cooldowns.
Useful for
- Add host pacing and robots handling to a Node crawler or agent that accepts a custom fetch function.
Key features
- Groups shared CNAME infrastructure into a queue and starts request timeouts when requests are sent, not while waiting in line.
Requirements & limitations
- Requires Node 20 or newer and no third-party dependencies. Supply a user agent identifying the crawler and contact URL; import the module into your own code.
- It does not render JavaScript, cache pages, solve CAPTCHAs or rotate IPs. After a 429 or supported challenge, later calls fail with BackOffError until the cooldown ends.
Discussion
No comments yet.
Sign in with Google to comment. Browsing is open to everyone.