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
chore: add `utils.sleep` shortcut
Martin Adámek3a6957d4ddfe
diff --git a/packages/crawlee/src/index.ts b/packages/crawlee/src/index.tsindex 18b4cec31..59bcdcdfd 100644--- a/packages/crawlee/src/index.ts+++ b/packages/crawlee/src/index.ts@@ -1,7 +1,7 @@/* eslint-disable import/export */import { log, enqueueLinks } from '@crawlee/core';-import { social } from '@crawlee/utils';+import { social, sleep } from '@crawlee/utils';import { puppeteerUtils } from '@crawlee/puppeteer';import { playwrightUtils } from '@crawlee/playwright';@@ -19,4 +19,5 @@ export const utils = {log,enqueueLinks,social,+ sleep,};