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
Fixing typo
Marek Trunkat73a2f5fb3fff
diff --git a/src/utils.js b/src/utils.jsindex 4551ac505..69a191405 100644--- a/src/utils.js+++ b/src/utils.js@@ -434,8 +434,8 @@ export const openRemoteStorage = async (idOrName, defaultIdEnvVar, RemoteClass,*/export const ensureTokenOrLocalStorageEnvExists = (storageName) => {if (!process.env[ENV_VARS.LOCAL_STORAGE_DIR] && !process.env[ENV_VARS.TOKEN]) {- throw new Error(`Cannot use ${storageName} as neither APIFY_LOCAL_STORAGE_DIR nor APIFY_TOKEN environment variable is not set.`- + 'Configure APIFY_LOCAL_STORAGE_DIR to enable storage in local directory or APIFY_TOKEN to use Apify cloud for storages.');+ throw new Error(`Cannot use ${storageName} as neither ${ENV_VARS.LOCAL_STORAGE_DIR} nor ${ENV_VARS.TOKEN} environment variable is set.`+ + `Configure ${ENV_VARS.LOCAL_STORAGE_DIR} to enable storage in local directory or ${ENV_VARS.TOKEN} to use Apify cloud for storages.`);}};