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(ts): ignore import errors for `got-scraping`

Martin Adámek012fc9eaf0fe
diff --git a/scripts/typescript_fixes.mjs b/scripts/typescript_fixes.mjs
index 65c62ca3c..716d87594 100644
--- a/scripts/typescript_fixes.mjs
+++ b/scripts/typescript_fixes.mjs
@@ -16,8 +16,8 @@ for (const filepath of files) {
output.push(`${match[1]} '${match[2]}`);
changed = true;
} else if (
- // playwright/puppeteer import
- line.match(/^([^']+)'(playwright|puppeteer)'/) ||
+ // playwright/puppeteer/got-scraping import
+ line.match(/^([^']+)'(playwright|puppeteer|got-scraping)'/) ||
// proxy-per-page reexport of puppeteer
line.match(/: Puppeteer\.\w+/) ||
// don't ask me why, but this one is needed too ¯\_(ツ)_/¯