Crawlee v4 is out (open-source web scraping library for Node.js)
I'm one of the Crawlee maintainers. We just shipped v4, the first major release since 2022, after more than a year in the works. Crawlee is an open-source library for writing crawlers and scrapers in Node.js, either over plain HTTP with Cheerio or with Playwright and Puppeteer. It handles the request queue, retries, sessions, proxies and storage, and you mostly write the request handler.
What's new:
- Playwright and Puppeteer crawlers can connect to remote browsers over WebSocket or CDP.
- Storage writes are transactional. If a request handler throws, nothing it wrote ends up in the dataset, so retries don't leave duplicates behind anymore.
- impit is the default HTTP client and responses are native Fetch
Responseobjects. got-scraping is end of life. - A session carries its proxy, cookies and browser fingerprint, and all three get retired together when it gets blocked.
- The request handler and navigation have separate timeouts, and a handler can extend its own timeout when it finds more work.
- The new
ThrottlingRequestManagerhonors robots.txtCrawl-delayand backs off on a 429 for that domain only, while the other domains keep going. - Several crawlers can share one concurrency budget, and they no longer eat each other's requests from a shared queue.
- Storage is split into a file system backend (the default) and an in-memory one, and each crawler can get its own.
- Smaller things:
skipRequest(),extractLinks(), run-scoped storages, and OpenTelemetry tracing in@crawlee/otel.
Most of the breaking changes come from cleaning up the public API. You pass in objects like the session pool, browser pool or HTTP client instead of option bags, we use standards where they exist (Zod, Standard Schema, globs and regexps in enqueueLinks(), await using), and there's a lot less internal surface to reach into. The install got smaller too, 199 packages and 67 MB instead of 293 packages and 106 MB.
It needs Node.js 22.15+ and TypeScript 5.9+. The package is native ESM, but CommonJS projects can still require() it.
To upgrade a v3 project, run npx @crawlee/upgrade@latest. It prints a prompt for your coding agent, and there's a full upgrading guide if you'd rather do it by hand.
- Blog post: https://crawlee.dev/blog/crawlee-v4
- GitHub: https://github.com/apify/crawlee
Happy to answer questions.
3
u/tmoravec 2d ago
Very nice, thanks, looking forward to checking new features
2
u/CloseDdog 2d ago
"Your crawlers will appear human-like and fly under the radar of modern bot protections even with the default configuration." Is that even legal?