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.

Fixing some imports

Marek Trunkat371c8593e397
diff --git a/src/autoscaled_pool.js b/src/autoscaled_pool.js
index c657b5b30..9ab556d85 100644
--- a/src/autoscaled_pool.js
+++ b/src/autoscaled_pool.js
@@ -1,5 +1,5 @@
import Promise from 'bluebird';
-import { log } from 'apify-shared';
+import log from 'apify-shared/log';
import _ from 'underscore';
import { checkParamOrThrow } from 'apify-client/build/utils';
import { getMemoryInfo, isPromise } from './utils';
diff --git a/src/basic_crawler.js b/src/basic_crawler.js
index 9d634b985..3f6ce4af0 100644
--- a/src/basic_crawler.js
+++ b/src/basic_crawler.js
@@ -1,6 +1,6 @@
import { checkParamOrThrow } from 'apify-client/build/utils';
import _ from 'underscore';
-import { log } from 'apify-shared';
+import log from 'apify-shared/log';
import { isPromise, checkParamPrototypeOrThrow } from './utils';
import AutoscaledPool from './autoscaled_pool';
import RequestList from './request_list';
diff --git a/src/index.js b/src/index.js
index ed6d60cd6..7d760ea52 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,5 +1,5 @@
import EventEmitter from 'events';
-import { log } from 'apify-shared';
+import log from 'apify-shared/log';
import { ENV_VARS } from './constants';
import { main, readyFreddy, getEnv, call, getApifyProxyUrl } from './actor';