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
fix: remove undeclared dependency on core package from puppeteer utils
Martin Adámek827ae60d6c77
diff --git a/package-lock.json b/package-lock.jsonindex 4bc394961..171716fae 100644--- a/package-lock.json+++ b/package-lock.json@@ -16380,7 +16380,6 @@"@apify/timeout": "^0.3.0","@crawlee/basic": "^3.0.4","@crawlee/browser-pool": "^3.0.4",- "@crawlee/core": "^3.0.4","@crawlee/types": "^3.0.4","@crawlee/utils": "^3.0.4","ow": "^0.28.1"@@ -16614,7 +16613,6 @@"@apify/log": "^2.0.0","@crawlee/browser": "^3.0.4","@crawlee/browser-pool": "^3.0.4",- "@crawlee/core": "^3.0.4","@crawlee/utils": "^3.0.4","cheerio": "1.0.0-rc.12","jquery": "^3.6.0",@@ -17758,7 +17756,6 @@"@apify/timeout": "^0.3.0","@crawlee/basic": "^3.0.4","@crawlee/browser-pool": "^3.0.4",- "@crawlee/core": "^3.0.4","@crawlee/types": "^3.0.4","@crawlee/utils": "^3.0.4","ow": "^0.28.1"@@ -17900,7 +17897,6 @@"@apify/log": "^2.0.0","@crawlee/browser": "^3.0.4","@crawlee/browser-pool": "^3.0.4",- "@crawlee/core": "^3.0.4","@crawlee/utils": "^3.0.4","cheerio": "1.0.0-rc.12","jquery": "^3.6.0",diff --git a/packages/browser-crawler/package.json b/packages/browser-crawler/package.jsonindex a25869189..7b4471a7a 100644--- a/packages/browser-crawler/package.json+++ b/packages/browser-crawler/package.json@@ -56,7 +56,6 @@"@apify/timeout": "^0.3.0","@crawlee/basic": "^3.0.4","@crawlee/browser-pool": "^3.0.4",- "@crawlee/core": "^3.0.4","@crawlee/types": "^3.0.4","@crawlee/utils": "^3.0.4","ow": "^0.28.1"diff --git a/packages/browser-crawler/src/internals/browser-crawler.ts b/packages/browser-crawler/src/internals/browser-crawler.tsindex c45b7e80c..94796cbf5 100644--- a/packages/browser-crawler/src/internals/browser-crawler.ts+++ b/packages/browser-crawler/src/internals/browser-crawler.ts@@ -6,7 +6,12 @@ import type {ProxyInfo,RequestQueue,Session,-} from '@crawlee/core';+ BasicCrawlerOptions,+ Awaitable,+ Dictionary,+ RequestHandler,+ ErrorHandler,+} from '@crawlee/basic';import {cookieStringToToughCookie,enqueueLinks,@@ -15,9 +20,9 @@ import {validators,resolveBaseUrlForEnqueueLinksFiltering,Configuration,-} from '@crawlee/core';-import type { BasicCrawlerOptions, Awaitable, Dictionary, RequestHandler, ErrorHandler } from '@crawlee/basic';-import { BASIC_CRAWLER_TIMEOUT_BUFFER_SECS, BasicCrawler } from '@crawlee/basic';+ BASIC_CRAWLER_TIMEOUT_BUFFER_SECS,+ BasicCrawler,+} from '@crawlee/basic';import type {BrowserController,BrowserPlugin,diff --git a/packages/browser-crawler/src/internals/browser-launcher.ts b/packages/browser-crawler/src/internals/browser-launcher.tsindex 016fc815e..178ecb6b5 100644--- a/packages/browser-crawler/src/internals/browser-launcher.ts+++ b/packages/browser-crawler/src/internals/browser-launcher.ts@@ -3,7 +3,7 @@ import fs from 'node:fs';import ow from 'ow';import type { Dictionary, Constructor } from '@crawlee/utils';import type { BrowserPlugin, BrowserPluginOptions } from '@crawlee/browser-pool';-import { Configuration } from '@crawlee/core';+import { Configuration } from '@crawlee/basic';const DEFAULT_VIEWPORT = {width: 1366,diff --git a/packages/playwright-crawler/package.json b/packages/playwright-crawler/package.jsonindex c4c33f1dc..317e350a6 100644--- a/packages/playwright-crawler/package.json+++ b/packages/playwright-crawler/package.json@@ -57,7 +57,6 @@"@apify/log": "^2.0.0","@crawlee/browser": "^3.0.4","@crawlee/browser-pool": "^3.0.4",- "@crawlee/core": "^3.0.4","@crawlee/utils": "^3.0.4","cheerio": "1.0.0-rc.12","jquery": "^3.6.0",diff --git a/packages/playwright-crawler/src/internals/utils/playwright-utils.ts b/packages/playwright-crawler/src/internals/utils/playwright-utils.tsindex 6affaeb0f..47a07e8b2 100644--- a/packages/playwright-crawler/src/internals/utils/playwright-utils.ts+++ b/packages/playwright-crawler/src/internals/utils/playwright-utils.ts@@ -23,8 +23,8 @@ import ow from 'ow';import type { Page, Response, Route } from 'playwright';import { LruCache } from '@apify/datastructures';import log_ from '@apify/log';-import type { Request } from '@crawlee/core';-import { validators } from '@crawlee/core';+import type { Request } from '@crawlee/browser';+import { validators } from '@crawlee/browser';import type { CheerioRoot, Dictionary } from '@crawlee/utils';import * as cheerio from 'cheerio';import type { PlaywrightCrawlingContext } from '../playwright-crawler';diff --git a/packages/puppeteer-crawler/src/internals/utils/puppeteer_utils.ts b/packages/puppeteer-crawler/src/internals/utils/puppeteer_utils.tsindex c34b1dd8f..3a96e9f24 100644--- a/packages/puppeteer-crawler/src/internals/utils/puppeteer_utils.ts+++ b/packages/puppeteer-crawler/src/internals/utils/puppeteer_utils.ts@@ -25,8 +25,8 @@ import { LruCache } from '@apify/datastructures';import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.js';import type { Page, HTTPResponse, ResponseForRequest, HTTPRequest as PuppeteerRequest } from 'puppeteer';import log_ from '@apify/log';-import type { Request } from '@crawlee/core';-import { KeyValueStore, validators } from '@crawlee/core';+import type { Request } from '@crawlee/browser';+import { KeyValueStore, validators } from '@crawlee/browser';import type { Dictionary, BatchAddRequestsResult } from '@crawlee/types';import type { CheerioRoot } from '@crawlee/utils';import * as cheerio from 'cheerio';