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: remove `PlaywrightCookie` type
Martin Adámek7ca43971d38c
diff --git a/packages/playwright-crawler/src/internals/playwright-crawler.ts b/packages/playwright-crawler/src/internals/playwright-crawler.tsindex 1764f123c..61b8d0fd9 100644--- a/packages/playwright-crawler/src/internals/playwright-crawler.ts+++ b/packages/playwright-crawler/src/internals/playwright-crawler.ts@@ -14,7 +14,6 @@ export interface PlaywrightCrawlingContext<UserData extends Dictionary = Dictionexport interface PlaywrightHook extends BrowserHook<PlaywrightCrawlingContext, PlaywrightGotoOptions> {}export interface PlaywrightRequestHandler extends BrowserRequestHandler<PlaywrightCrawlingContext> {}export type PlaywrightGotoOptions = Parameters<Page['goto']>[1];-export type PlaywrightCookie = Parameters<ReturnType<Page['context']>['addCookies']>[0][0];export interface PlaywrightCrawlerOptions extends BrowserCrawlerOptions<PlaywrightCrawlingContext,diff --git a/scripts/typescript_fixes.mjs b/scripts/typescript_fixes.mjsindex b15864035..65c62ca3c 100644--- a/scripts/typescript_fixes.mjs+++ b/scripts/typescript_fixes.mjs@@ -21,7 +21,7 @@ for (const filepath of files) {// proxy-per-page reexport of puppeteerline.match(/: Puppeteer\.\w+/) ||// don't ask me why, but this one is needed too ¯\_(ツ)_/¯- line.match(/^export interface (PlaywrightHook|PuppeteerHook|PlaywrightCookie)/)+ line.match(/^export interface (PlaywrightHook|PuppeteerHook)/)) {output.push('// @ts-ignore optional peer dependency');output.push(line);