Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
import { CheerioCrawler, ConcurrencySystem } from 'crawlee';
// Advanced scaling options live on a pre-configured ConcurrencySystem.
// An injected system's lifecycle is owned by us, not the crawler - `await using` stops it for us
// once we are done with it.
await using concurrencySystem = new ConcurrencySystem({
// ...
});
const crawler = new CheerioCrawler({
concurrencySystem,
// ...
});
await concurrencySystem.start();
await crawler.run(['https://crawlee.dev']);