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: improve whitespace in an error message
Ondra Urbanb911cfd4a3aa
diff --git a/src/browser_launchers/browser_launcher.js b/src/browser_launchers/browser_launcher.jsindex 181624871..bc8479919 100644--- a/src/browser_launchers/browser_launcher.js+++ b/src/browser_launchers/browser_launcher.js@@ -48,10 +48,10 @@ export default class BrowserLauncher {return require(launcher); // eslint-disable-line} catch (err) {if (err.code === 'MODULE_NOT_FOUND') {- const msg = `Cannot find module '${launcher}'. Did you you install the '${launcher}' package?`+ const msg = `Cannot find module '${launcher}'. Did you you install the '${launcher}' package?\n`+ `Make sure you have '${launcher} in your package.json dependencies and in your package-lock.json, if you use it.`;err.message = isAtHome()- ? `${msg} On the Apify platform, '${launcher}' can only be used with the ${apifyImageName} Docker image.`+ ? `${msg}\nOn the Apify platform, '${launcher}' can only be used with the ${apifyImageName} Docker image.`: msg;}