Skip to content

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.

fix CLI 2

Martin Adámeke6b7dc05ee0f
diff --git a/packages/crawlee/src/cli.ts b/packages/crawlee/src/cli.ts
index 1f02cac45..d1aa2f9f0 100755
--- a/packages/crawlee/src/cli.ts
+++ b/packages/crawlee/src/cli.ts
@@ -4,6 +4,5 @@ import importLocal from 'import-local';
// @ts-ignore bad types most likely?
if (!importLocal(import.meta.url)) {
- // eslint-disable-next-line
- require('@crawlee/cli');
+ await import('@crawlee/cli');
}