@crawlee/puppeteer 4.0.0-beta.8 → 4.0.0-beta.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -13
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/internals/enqueue-links/click-elements.d.ts +35 -15
- package/internals/enqueue-links/click-elements.js +51 -22
- package/internals/puppeteer-crawler.d.ts +77 -45
- package/internals/puppeteer-crawler.js +60 -46
- package/internals/puppeteer-launcher.d.ts +2 -1
- package/internals/puppeteer-launcher.js +0 -1
- package/internals/utils/puppeteer_request_interception.d.ts +0 -1
- package/internals/utils/puppeteer_request_interception.js +2 -3
- package/internals/utils/puppeteer_utils.d.ts +10 -28
- package/internals/utils/puppeteer_utils.js +65 -54
- package/package.json +13 -9
- package/index.d.ts.map +0 -1
- package/index.js.map +0 -1
- package/internals/enqueue-links/click-elements.d.ts.map +0 -1
- package/internals/enqueue-links/click-elements.js.map +0 -1
- package/internals/puppeteer-crawler.d.ts.map +0 -1
- package/internals/puppeteer-crawler.js.map +0 -1
- package/internals/puppeteer-launcher.d.ts.map +0 -1
- package/internals/puppeteer-launcher.js.map +0 -1
- package/internals/utils/puppeteer_request_interception.d.ts.map +0 -1
- package/internals/utils/puppeteer_request_interception.js.map +0 -1
- package/internals/utils/puppeteer_utils.d.ts.map +0 -1
- package/internals/utils/puppeteer_utils.js.map +0 -1
- package/tsconfig.build.tsbuildinfo +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BrowserCrawler,
|
|
1
|
+
import { BrowserCrawler, RequestState, Router } from '@crawlee/browser';
|
|
2
|
+
import { serviceLocator } from '@crawlee/core';
|
|
2
3
|
import ow from 'ow';
|
|
3
4
|
import { PuppeteerLauncher } from './puppeteer-launcher.js';
|
|
4
|
-
import { gotoExtended,
|
|
5
|
+
import { gotoExtended, puppeteerUtils } from './utils/puppeteer_utils.js';
|
|
5
6
|
/**
|
|
6
7
|
* Provides a simple framework for parallel crawling of web pages
|
|
7
8
|
* using headless Chrome with [Puppeteer](https://github.com/puppeteer/puppeteer).
|
|
@@ -13,13 +14,15 @@ import { gotoExtended, registerUtilsToContext } from './utils/puppeteer_utils.js
|
|
|
13
14
|
* If the target website doesn't need JavaScript, consider using {@link CheerioCrawler},
|
|
14
15
|
* which downloads the pages using raw HTTP requests and is about 10x faster.
|
|
15
16
|
*
|
|
16
|
-
* The source URLs are represented using {@link Request} objects that are fed from
|
|
17
|
-
* {@link
|
|
18
|
-
*
|
|
17
|
+
* The source URLs are represented using {@link Request} objects that are fed from the
|
|
18
|
+
* {@link IRequestManager|request manager} provided via the {@link PuppeteerCrawlerOptions.requestManager|`requestManager`}
|
|
19
|
+
* constructor option (a {@link RequestQueue} is itself a request manager). To read from a read-only source such
|
|
20
|
+
* as a {@link RequestList} while still being able to enqueue new requests, combine it with a queue into a
|
|
21
|
+
* {@link RequestManagerTandem} via {@link IRequestLoader.toTandem|`requestLoader.toTandem()`} and pass the
|
|
22
|
+
* result as `requestManager`.
|
|
19
23
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* to {@link RequestQueue} before it starts their processing. This ensures that a single URL is not crawled multiple times.
|
|
24
|
+
* > The {@link PuppeteerCrawlerOptions.requestList|`requestList`} and {@link PuppeteerCrawlerOptions.requestQueue|`requestQueue`}
|
|
25
|
+
* > options are deprecated; they are still accepted and folded into a single `requestManager` for back-compat.
|
|
23
26
|
*
|
|
24
27
|
* The crawler finishes when there are no more {@link Request} objects to crawl.
|
|
25
28
|
*
|
|
@@ -66,8 +69,6 @@ import { gotoExtended, registerUtilsToContext } from './utils/puppeteer_utils.js
|
|
|
66
69
|
* @category Crawlers
|
|
67
70
|
*/
|
|
68
71
|
export class PuppeteerCrawler extends BrowserCrawler {
|
|
69
|
-
options;
|
|
70
|
-
config;
|
|
71
72
|
static optionsShape = {
|
|
72
73
|
...BrowserCrawler.optionsShape,
|
|
73
74
|
browserPoolOptions: ow.optional.object,
|
|
@@ -75,9 +76,9 @@ export class PuppeteerCrawler extends BrowserCrawler {
|
|
|
75
76
|
/**
|
|
76
77
|
* All `PuppeteerCrawler` parameters are passed via an options object.
|
|
77
78
|
*/
|
|
78
|
-
constructor(options = {}
|
|
79
|
+
constructor(options = {}) {
|
|
79
80
|
ow(options, 'PuppeteerCrawlerOptions', ow.object.exactShape(PuppeteerCrawler.optionsShape));
|
|
80
|
-
const { launchContext = {}, headless, proxyConfiguration, ...browserCrawlerOptions } = options;
|
|
81
|
+
const { launchContext = {}, headless, proxyConfiguration, contextPipelineBuilder, ...browserCrawlerOptions } = options;
|
|
81
82
|
const browserPoolOptions = {
|
|
82
83
|
...options.browserPoolOptions,
|
|
83
84
|
};
|
|
@@ -94,45 +95,58 @@ export class PuppeteerCrawler extends BrowserCrawler {
|
|
|
94
95
|
launchContext.launchOptions ??= {};
|
|
95
96
|
launchContext.launchOptions.headless = headless;
|
|
96
97
|
}
|
|
97
|
-
const puppeteerLauncher = new PuppeteerLauncher(launchContext,
|
|
98
|
+
const puppeteerLauncher = new PuppeteerLauncher(launchContext, options.configuration);
|
|
98
99
|
browserPoolOptions.browserPlugins = [puppeteerLauncher.createBrowserPlugin()];
|
|
99
|
-
super({
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
super({
|
|
101
|
+
...browserCrawlerOptions,
|
|
102
|
+
launchContext,
|
|
103
|
+
proxyConfiguration,
|
|
104
|
+
browserPoolOptions,
|
|
105
|
+
contextPipelineBuilder: contextPipelineBuilder ?? (() => this.buildContextPipeline()),
|
|
106
|
+
});
|
|
102
107
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
108
|
+
buildContextPipeline() {
|
|
109
|
+
return super.buildContextPipeline().compose({ action: this.enhanceContext.bind(this) });
|
|
110
|
+
}
|
|
111
|
+
async enhanceContext(context) {
|
|
112
|
+
const waitForSelector = async (selector, timeoutMs = 5_000) => {
|
|
113
|
+
await context.page.waitForSelector(selector, { timeout: timeoutMs });
|
|
114
|
+
};
|
|
115
|
+
return {
|
|
116
|
+
injectFile: async (filePath, options) => puppeteerUtils.injectFile(context.page, filePath, options),
|
|
117
|
+
injectJQuery: async () => {
|
|
118
|
+
if (context.request.state === RequestState.BEFORE_NAV) {
|
|
119
|
+
context.log.warning('Using injectJQuery() in preNavigationHooks leads to unstable results. Use it in a postNavigationHook or a requestHandler instead.');
|
|
120
|
+
await puppeteerUtils.injectJQuery(context.page);
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
await puppeteerUtils.injectJQuery(context.page, { surviveNavigations: false });
|
|
124
|
+
},
|
|
125
|
+
waitForSelector,
|
|
126
|
+
parseWithCheerio: async (selector, timeoutMs = 5_000) => {
|
|
127
|
+
if (selector) {
|
|
128
|
+
await waitForSelector(selector, timeoutMs);
|
|
129
|
+
}
|
|
130
|
+
return puppeteerUtils.parseWithCheerio(context.page, this.ignoreShadowRoots, this.ignoreIframes);
|
|
131
|
+
},
|
|
132
|
+
enqueueLinksByClickingElements: async (options) => puppeteerUtils.enqueueLinksByClickingElements({
|
|
133
|
+
page: context.page,
|
|
134
|
+
requestManager: this.requestManager,
|
|
135
|
+
...options,
|
|
136
|
+
}),
|
|
137
|
+
blockRequests: async (options) => puppeteerUtils.blockRequests(context.page, options),
|
|
138
|
+
compileScript: (scriptString, ctx) => puppeteerUtils.compileScript(scriptString, ctx),
|
|
139
|
+
addInterceptRequestHandler: async (handler) => puppeteerUtils.addInterceptRequestHandler(context.page, handler),
|
|
140
|
+
removeInterceptRequestHandler: async (handler) => puppeteerUtils.removeInterceptRequestHandler(context.page, handler),
|
|
141
|
+
infiniteScroll: async (options) => puppeteerUtils.infiniteScroll(context.page, options),
|
|
142
|
+
saveSnapshot: async (options) => puppeteerUtils.saveSnapshot(context.page, { ...options, config: serviceLocator.getConfiguration() }),
|
|
143
|
+
closeCookieModals: async () => puppeteerUtils.closeCookieModals(context.page),
|
|
144
|
+
};
|
|
106
145
|
}
|
|
107
146
|
async _navigationHandler(crawlingContext, gotoOptions) {
|
|
108
147
|
return gotoExtended(crawlingContext.page, crawlingContext.request, gotoOptions);
|
|
109
148
|
}
|
|
110
149
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
* This instance can then serve as a `requestHandler` of your {@link PuppeteerCrawler}.
|
|
114
|
-
* Defaults to the {@link PuppeteerCrawlingContext}.
|
|
115
|
-
*
|
|
116
|
-
* > Serves as a shortcut for using `Router.create<PuppeteerCrawlingContext>()`.
|
|
117
|
-
*
|
|
118
|
-
* ```ts
|
|
119
|
-
* import { PuppeteerCrawler, createPuppeteerRouter } from 'crawlee';
|
|
120
|
-
*
|
|
121
|
-
* const router = createPuppeteerRouter();
|
|
122
|
-
* router.addHandler('label-a', async (ctx) => {
|
|
123
|
-
* ctx.log.info('...');
|
|
124
|
-
* });
|
|
125
|
-
* router.addDefaultHandler(async (ctx) => {
|
|
126
|
-
* ctx.log.info('...');
|
|
127
|
-
* });
|
|
128
|
-
*
|
|
129
|
-
* const crawler = new PuppeteerCrawler({
|
|
130
|
-
* requestHandler: router,
|
|
131
|
-
* });
|
|
132
|
-
* await crawler.run();
|
|
133
|
-
* ```
|
|
134
|
-
*/
|
|
135
|
-
export function createPuppeteerRouter(routes) {
|
|
136
|
-
return Router.create(routes);
|
|
150
|
+
export function createPuppeteerRouter(routesOrSchemas) {
|
|
151
|
+
return Router.create(routesOrSchemas);
|
|
137
152
|
}
|
|
138
|
-
//# sourceMappingURL=puppeteer-crawler.js.map
|
|
@@ -78,6 +78,8 @@ export declare class PuppeteerLauncher extends BrowserLauncher<PuppeteerPlugin,
|
|
|
78
78
|
useIncognitoPages: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
79
79
|
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
80
80
|
browserPerProxy: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
81
|
+
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
82
|
+
ignoreProxyCertificate: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
81
83
|
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
82
84
|
userDataDir: import("ow").StringPredicate & import("ow").BasePredicate<string | undefined>;
|
|
83
85
|
// @ts-ignore optional peer dependency or compatibility with es2022
|
|
@@ -124,4 +126,3 @@ export declare class PuppeteerLauncher extends BrowserLauncher<PuppeteerPlugin,
|
|
|
124
126
|
* Promise that resolves to Puppeteer's `Browser` instance.
|
|
125
127
|
*/
|
|
126
128
|
export declare function launchPuppeteer(launchContext?: PuppeteerLaunchContext, config?: Configuration): Promise<Browser>;
|
|
127
|
-
//# sourceMappingURL=puppeteer-launcher.d.ts.map
|
|
@@ -58,4 +58,3 @@ export declare function addInterceptRequestHandler(page: Page, handler: Intercep
|
|
|
58
58
|
* @param handler Request interception handler.
|
|
59
59
|
*/
|
|
60
60
|
export declare function removeInterceptRequestHandler(page: Page, handler: InterceptHandler): Promise<void>;
|
|
61
|
-
//# sourceMappingURL=puppeteer_request_interception.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from 'node:events';
|
|
2
|
+
import { serviceLocator } from '@crawlee/browser';
|
|
2
3
|
import ow from 'ow';
|
|
3
|
-
import log from '@apify/log';
|
|
4
4
|
// We use weak maps here so that the content gets discarded after page gets closed.
|
|
5
5
|
const pageInterceptRequestHandlersMap = new WeakMap(); // Maps page to an array of request interception handlers.
|
|
6
6
|
const pageInterceptRequestMasterHandlerMap = new WeakMap(); // Maps page to master request interception handler.
|
|
@@ -194,7 +194,7 @@ export async function removeInterceptRequestHandler(page, handler) {
|
|
|
194
194
|
interceptedRequestsInProgress.removeListener('delete', onDelete);
|
|
195
195
|
}
|
|
196
196
|
catch (error) {
|
|
197
|
-
|
|
197
|
+
serviceLocator.getLogger().debug('Error while disabling request interception', { error });
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
};
|
|
@@ -207,4 +207,3 @@ async function disableRequestInterception(page) {
|
|
|
207
207
|
const requestHandler = pageInterceptRequestMasterHandlerMap.get(page);
|
|
208
208
|
page.off('request', requestHandler);
|
|
209
209
|
}
|
|
210
|
-
//# sourceMappingURL=puppeteer_request_interception.js.map
|
|
@@ -26,7 +26,6 @@ import type { ProtocolMapping } from 'devtools-protocol/types/protocol-mapping.j
|
|
|
26
26
|
import type { HTTPResponse, Page, ResponseForRequest } from 'puppeteer';
|
|
27
27
|
import type { EnqueueLinksByClickingElementsOptions } from '../enqueue-links/click-elements.js';
|
|
28
28
|
import { enqueueLinksByClickingElements } from '../enqueue-links/click-elements.js';
|
|
29
|
-
import type { PuppeteerCrawlerOptions, PuppeteerCrawlingContext } from '../puppeteer-crawler.js';
|
|
30
29
|
import type { InterceptHandler } from './puppeteer_request_interception.js';
|
|
31
30
|
import { addInterceptRequestHandler, removeInterceptRequestHandler } from './puppeteer_request_interception.js';
|
|
32
31
|
export interface DirectNavigationOptions {
|
|
@@ -421,7 +420,7 @@ export interface PuppeteerContextUtils {
|
|
|
421
420
|
*
|
|
422
421
|
* @returns Promise that resolves to {@link BatchAddRequestsResult} object.
|
|
423
422
|
*/
|
|
424
|
-
enqueueLinksByClickingElements(options: Omit<EnqueueLinksByClickingElementsOptions, 'page' | '
|
|
423
|
+
enqueueLinksByClickingElements(options: Omit<EnqueueLinksByClickingElementsOptions, 'page' | 'requestManager'>): Promise<BatchAddRequestsResult>;
|
|
425
424
|
/**
|
|
426
425
|
* Forces the Puppeteer browser tab to block loading URLs that match a provided pattern.
|
|
427
426
|
* This is useful to speed up crawling of websites, since it reduces the amount
|
|
@@ -459,27 +458,6 @@ export interface PuppeteerContextUtils {
|
|
|
459
458
|
* ```
|
|
460
459
|
*/
|
|
461
460
|
blockRequests(options?: BlockRequestsOptions): Promise<void>;
|
|
462
|
-
/**
|
|
463
|
-
* `blockResources()` has a high impact on performance in recent versions of Puppeteer.
|
|
464
|
-
* Until this resolves, please use `utils.puppeteer.blockRequests()`.
|
|
465
|
-
* @deprecated
|
|
466
|
-
*/
|
|
467
|
-
blockResources(resourceTypes?: string[]): Promise<void>;
|
|
468
|
-
/**
|
|
469
|
-
* *NOTE:* In recent versions of Puppeteer using this function entirely disables browser cache which resolves in sub-optimal
|
|
470
|
-
* performance. Until this resolves, we suggest just relying on the in-browser cache unless absolutely necessary.
|
|
471
|
-
*
|
|
472
|
-
* Enables caching of intercepted responses into a provided object. Automatically enables request interception in Puppeteer.
|
|
473
|
-
* *IMPORTANT*: Caching responses stores them to memory, so too loose rules could cause memory leaks for longer running crawlers.
|
|
474
|
-
* This issue should be resolved or atleast mitigated in future iterations of this feature.
|
|
475
|
-
* @param cache
|
|
476
|
-
* Object in which responses are stored
|
|
477
|
-
* @param responseUrlRules
|
|
478
|
-
* List of rules that are used to check if the response should be cached.
|
|
479
|
-
* String rules are compared as page.url().includes(rule) while RegExp rules are evaluated as rule.test(page.url()).
|
|
480
|
-
* @deprecated
|
|
481
|
-
*/
|
|
482
|
-
cacheResponses(cache: Dictionary<Partial<ResponseForRequest>>, responseUrlRules: (string | RegExp)[]): Promise<void>;
|
|
483
461
|
/**
|
|
484
462
|
* Compiles a Puppeteer script into an async function that may be executed at any time
|
|
485
463
|
* by providing it with the following object:
|
|
@@ -574,11 +552,18 @@ export interface PuppeteerContextUtils {
|
|
|
574
552
|
saveSnapshot(options?: SaveSnapshotOptions): Promise<void>;
|
|
575
553
|
/**
|
|
576
554
|
* Tries to close cookie consent modals on the page. Based on the I Don't Care About Cookies browser extension.
|
|
555
|
+
*
|
|
556
|
+
* Note that this method requires the idcac-playwright package to be installed.
|
|
557
|
+
* Crawlee does not include it by default due to licensing issues.
|
|
558
|
+
*
|
|
559
|
+
* To use this method, please install the package manually by running:
|
|
560
|
+
*
|
|
561
|
+
* ```bash
|
|
562
|
+
* npm install idcac-playwright
|
|
563
|
+
* ```
|
|
577
564
|
*/
|
|
578
565
|
closeCookieModals(): Promise<void>;
|
|
579
566
|
}
|
|
580
|
-
/** @internal */
|
|
581
|
-
export declare function registerUtilsToContext(context: PuppeteerCrawlingContext, crawlerOptions: PuppeteerCrawlerOptions): void;
|
|
582
567
|
export { enqueueLinksByClickingElements, addInterceptRequestHandler, removeInterceptRequestHandler };
|
|
583
568
|
/** @internal */
|
|
584
569
|
export declare const puppeteerUtils: {
|
|
@@ -586,8 +571,6 @@ export declare const puppeteerUtils: {
|
|
|
586
571
|
injectJQuery: typeof injectJQuery;
|
|
587
572
|
enqueueLinksByClickingElements: typeof enqueueLinksByClickingElements;
|
|
588
573
|
blockRequests: typeof blockRequests;
|
|
589
|
-
blockResources: (page: Page, resourceTypes?: string[]) => Promise<void>;
|
|
590
|
-
cacheResponses: typeof cacheResponses;
|
|
591
574
|
compileScript: typeof compileScript;
|
|
592
575
|
gotoExtended: typeof gotoExtended;
|
|
593
576
|
addInterceptRequestHandler: typeof addInterceptRequestHandler;
|
|
@@ -597,4 +580,3 @@ export declare const puppeteerUtils: {
|
|
|
597
580
|
parseWithCheerio: typeof parseWithCheerio;
|
|
598
581
|
closeCookieModals: typeof closeCookieModals;
|
|
599
582
|
};
|
|
600
|
-
//# sourceMappingURL=puppeteer_utils.d.ts.map
|
|
@@ -20,20 +20,18 @@
|
|
|
20
20
|
import { readFile } from 'node:fs/promises';
|
|
21
21
|
import { createRequire } from 'node:module';
|
|
22
22
|
import vm from 'node:vm';
|
|
23
|
-
import { Configuration, KeyValueStore,
|
|
23
|
+
import { Configuration, KeyValueStore, serviceLocator, validators } from '@crawlee/browser';
|
|
24
24
|
import { expandShadowRoots, sleep } from '@crawlee/utils';
|
|
25
25
|
import * as cheerio from 'cheerio';
|
|
26
|
-
import { getInjectableScript } from 'idcac-playwright';
|
|
27
26
|
import ow from 'ow';
|
|
28
27
|
import { LruCache } from '@apify/datastructures';
|
|
29
|
-
import log_ from '@apify/log';
|
|
30
28
|
import { enqueueLinksByClickingElements } from '../enqueue-links/click-elements.js';
|
|
31
29
|
import { addInterceptRequestHandler, removeInterceptRequestHandler } from './puppeteer_request_interception.js';
|
|
32
30
|
const require = createRequire(import.meta.url);
|
|
33
31
|
const jqueryPath = require.resolve('jquery');
|
|
34
32
|
const MAX_INJECT_FILE_CACHE_SIZE = 10;
|
|
35
33
|
const DEFAULT_BLOCK_REQUEST_URL_PATTERNS = ['.css', '.jpg', '.jpeg', '.png', '.svg', '.gif', '.woff', '.pdf', '.zip'];
|
|
36
|
-
const
|
|
34
|
+
const getLog = () => serviceLocator.getChildLog('Puppeteer Utils');
|
|
37
35
|
/**
|
|
38
36
|
* Cache contents of previously injected files to limit file system access.
|
|
39
37
|
*/
|
|
@@ -64,7 +62,7 @@ export async function injectFile(page, filePath, options = {}) {
|
|
|
64
62
|
if (options.surviveNavigations) {
|
|
65
63
|
page.on('framenavigated', async () => page
|
|
66
64
|
.evaluate(contents)
|
|
67
|
-
.catch((error) =>
|
|
65
|
+
.catch((error) => getLog().warning('An error occurred during the script injection!', { error })));
|
|
68
66
|
}
|
|
69
67
|
return evalP;
|
|
70
68
|
}
|
|
@@ -118,7 +116,15 @@ export async function parseWithCheerio(page, ignoreShadowRoots = false, ignoreIf
|
|
|
118
116
|
try {
|
|
119
117
|
const iframe = await frame.contentFrame();
|
|
120
118
|
if (iframe) {
|
|
121
|
-
const
|
|
119
|
+
const getIframeHTML = async () => {
|
|
120
|
+
try {
|
|
121
|
+
return iframe.$eval('body', (el) => el.innerHTML);
|
|
122
|
+
}
|
|
123
|
+
catch {
|
|
124
|
+
return iframe.content();
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const contents = await getIframeHTML();
|
|
122
128
|
await frame.evaluate((f, c) => {
|
|
123
129
|
const replacementNode = document.createElement('div');
|
|
124
130
|
replacementNode.innerHTML = c;
|
|
@@ -128,7 +134,7 @@ export async function parseWithCheerio(page, ignoreShadowRoots = false, ignoreIf
|
|
|
128
134
|
}
|
|
129
135
|
}
|
|
130
136
|
catch (error) {
|
|
131
|
-
|
|
137
|
+
getLog().warning(`Failed to extract iframe content: ${error}`);
|
|
132
138
|
}
|
|
133
139
|
}));
|
|
134
140
|
}
|
|
@@ -214,7 +220,9 @@ export async function sendCDPCommand(page, command, ...args) {
|
|
|
214
220
|
* @deprecated
|
|
215
221
|
*/
|
|
216
222
|
export const blockResources = async (page, resourceTypes = ['stylesheet', 'font', 'image', 'media']) => {
|
|
217
|
-
|
|
223
|
+
serviceLocator
|
|
224
|
+
.getLogger()
|
|
225
|
+
.deprecated('utils.puppeteer.blockResources() has a high impact on performance in recent versions of Puppeteer. ' +
|
|
218
226
|
'Until this resolves, please use utils.puppeteer.blockRequests()');
|
|
219
227
|
await addInterceptRequestHandler(page, async (request) => {
|
|
220
228
|
const type = request.resourceType();
|
|
@@ -244,7 +252,9 @@ export async function cacheResponses(page, cache, responseUrlRules) {
|
|
|
244
252
|
ow(page, ow.object.validate(validators.browserPage));
|
|
245
253
|
ow(cache, ow.object);
|
|
246
254
|
ow(responseUrlRules, ow.array.ofType(ow.any(ow.string, ow.regExp)));
|
|
247
|
-
|
|
255
|
+
serviceLocator
|
|
256
|
+
.getLogger()
|
|
257
|
+
.deprecated('utils.puppeteer.cacheResponses() has a high impact on performance ' +
|
|
248
258
|
"in recent versions of Puppeteer so it's use is discouraged until this issue resolves.");
|
|
249
259
|
await addInterceptRequestHandler(page, async (request) => {
|
|
250
260
|
const url = request.url();
|
|
@@ -314,7 +324,7 @@ export function compileScript(scriptString, context = Object.create(null)) {
|
|
|
314
324
|
func = vm.runInNewContext(funcString, context); // "Secure" the context by removing prototypes, unless custom context is provided.
|
|
315
325
|
}
|
|
316
326
|
catch (err) {
|
|
317
|
-
|
|
327
|
+
getLog().exception(err, 'Cannot compile script!');
|
|
318
328
|
throw err;
|
|
319
329
|
}
|
|
320
330
|
if (typeof func !== 'function')
|
|
@@ -348,9 +358,11 @@ export async function gotoExtended(page, request, gotoOptions = {}) {
|
|
|
348
358
|
}
|
|
349
359
|
const { url, method, headers, payload } = request;
|
|
350
360
|
const isEmpty = (o) => !o || Object.keys(o).length === 0;
|
|
351
|
-
if (method !== 'GET' || payload
|
|
361
|
+
if (method !== 'GET' || payload) {
|
|
352
362
|
// This is not deprecated, we use it to log only once.
|
|
353
|
-
|
|
363
|
+
serviceLocator
|
|
364
|
+
.getLogger()
|
|
365
|
+
.deprecated('Using other request methods than GET, rewriting headers and adding payloads has a high impact on performance ' +
|
|
354
366
|
'in recent versions of Puppeteer. Use only when necessary.');
|
|
355
367
|
let wasCalled = false;
|
|
356
368
|
const interceptRequestHandler = async (interceptedRequest) => {
|
|
@@ -373,6 +385,19 @@ export async function gotoExtended(page, request, gotoOptions = {}) {
|
|
|
373
385
|
};
|
|
374
386
|
await addInterceptRequestHandler(page, interceptRequestHandler);
|
|
375
387
|
}
|
|
388
|
+
else if (!isEmpty(headers)) {
|
|
389
|
+
const extraHeaders = { ...headers };
|
|
390
|
+
// Chrome bundled with Puppeteer 25+ ignores a `User-Agent` passed via `setExtraHTTPHeaders()`, it has to be set explicitly.
|
|
391
|
+
for (const name of Object.keys(extraHeaders)) {
|
|
392
|
+
if (name.toLowerCase() === 'user-agent') {
|
|
393
|
+
await page.setUserAgent(extraHeaders[name]);
|
|
394
|
+
delete extraHeaders[name];
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
if (!isEmpty(extraHeaders)) {
|
|
398
|
+
await page.setExtraHTTPHeaders(extraHeaders);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
376
401
|
return page.goto(url, gotoOptions);
|
|
377
402
|
}
|
|
378
403
|
/**
|
|
@@ -494,7 +519,7 @@ export async function saveSnapshot(page, options = {}) {
|
|
|
494
519
|
}));
|
|
495
520
|
const { key = 'SNAPSHOT', screenshotQuality = 50, saveScreenshot = true, saveHtml = true, keyValueStoreName, config, } = options;
|
|
496
521
|
try {
|
|
497
|
-
const store = await KeyValueStore.open(keyValueStoreName, {
|
|
522
|
+
const store = await KeyValueStore.open(keyValueStoreName ? { name: keyValueStoreName } : null, {
|
|
498
523
|
config: config ?? Configuration.getGlobalConfig(),
|
|
499
524
|
});
|
|
500
525
|
if (saveScreenshot) {
|
|
@@ -516,45 +541,34 @@ export async function saveSnapshot(page, options = {}) {
|
|
|
516
541
|
throw new Error(`saveSnapshot with key ${key} failed.\nCause:${err.message}`);
|
|
517
542
|
}
|
|
518
543
|
}
|
|
519
|
-
|
|
520
|
-
|
|
544
|
+
let idcacPlaywright = null;
|
|
545
|
+
async function getIdcacPlaywright() {
|
|
546
|
+
if (idcacPlaywright)
|
|
547
|
+
return idcacPlaywright;
|
|
548
|
+
try {
|
|
549
|
+
idcacPlaywright = await import('idcac-playwright');
|
|
550
|
+
}
|
|
551
|
+
catch (error) {
|
|
552
|
+
getLog().warning(`Failed to import 'idcac-playwright'.
|
|
553
|
+
|
|
554
|
+
We recently made idcac-playwright an optional dependency due to licensing issues.
|
|
555
|
+
To use this feature, please install it manually by running
|
|
556
|
+
|
|
557
|
+
npm install idcac-playwright
|
|
558
|
+
|
|
559
|
+
Original error message follows:
|
|
560
|
+
|
|
561
|
+
${error.message}
|
|
562
|
+
`);
|
|
563
|
+
}
|
|
564
|
+
return idcacPlaywright;
|
|
521
565
|
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
await injectJQuery(context.page);
|
|
529
|
-
return;
|
|
530
|
-
}
|
|
531
|
-
await injectJQuery(context.page, { surviveNavigations: false });
|
|
532
|
-
};
|
|
533
|
-
context.waitForSelector = async (selector, timeoutMs = 5_000) => {
|
|
534
|
-
await context.page.waitForSelector(selector, { timeout: timeoutMs });
|
|
535
|
-
};
|
|
536
|
-
context.parseWithCheerio = async (selector, timeoutMs = 5_000) => {
|
|
537
|
-
if (selector) {
|
|
538
|
-
await context.waitForSelector(selector, timeoutMs);
|
|
539
|
-
}
|
|
540
|
-
return parseWithCheerio(context.page, crawlerOptions.ignoreShadowRoots, crawlerOptions.ignoreIframes);
|
|
541
|
-
};
|
|
542
|
-
context.enqueueLinksByClickingElements = async (options) => enqueueLinksByClickingElements({
|
|
543
|
-
page: context.page,
|
|
544
|
-
requestQueue: context.crawler.requestQueue,
|
|
545
|
-
...options,
|
|
546
|
-
});
|
|
547
|
-
context.blockRequests = async (options) => blockRequests(context.page, options);
|
|
548
|
-
context.blockResources = async (resourceTypes) => blockResources(context.page, resourceTypes);
|
|
549
|
-
context.cacheResponses = async (cache, responseUrlRules) => {
|
|
550
|
-
return cacheResponses(context.page, cache, responseUrlRules);
|
|
551
|
-
};
|
|
552
|
-
context.compileScript = (scriptString, ctx) => compileScript(scriptString, ctx);
|
|
553
|
-
context.addInterceptRequestHandler = async (handler) => addInterceptRequestHandler(context.page, handler);
|
|
554
|
-
context.removeInterceptRequestHandler = async (handler) => removeInterceptRequestHandler(context.page, handler);
|
|
555
|
-
context.infiniteScroll = async (options) => infiniteScroll(context.page, options);
|
|
556
|
-
context.saveSnapshot = async (options) => saveSnapshot(context.page, { ...options, config: context.crawler.config });
|
|
557
|
-
context.closeCookieModals = async () => closeCookieModals(context.page);
|
|
566
|
+
export async function closeCookieModals(page) {
|
|
567
|
+
ow(page, ow.object.validate(validators.browserPage));
|
|
568
|
+
const idcac = await getIdcacPlaywright();
|
|
569
|
+
if (idcac?.getInjectableScript()) {
|
|
570
|
+
await page.evaluate(idcac.getInjectableScript());
|
|
571
|
+
}
|
|
558
572
|
}
|
|
559
573
|
export { enqueueLinksByClickingElements, addInterceptRequestHandler, removeInterceptRequestHandler };
|
|
560
574
|
/** @internal */
|
|
@@ -563,8 +577,6 @@ export const puppeteerUtils = {
|
|
|
563
577
|
injectJQuery,
|
|
564
578
|
enqueueLinksByClickingElements,
|
|
565
579
|
blockRequests,
|
|
566
|
-
blockResources,
|
|
567
|
-
cacheResponses,
|
|
568
580
|
compileScript,
|
|
569
581
|
gotoExtended,
|
|
570
582
|
addInterceptRequestHandler,
|
|
@@ -574,4 +586,3 @@ export const puppeteerUtils = {
|
|
|
574
586
|
parseWithCheerio,
|
|
575
587
|
closeCookieModals,
|
|
576
588
|
};
|
|
577
|
-
//# sourceMappingURL=puppeteer_utils.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/puppeteer",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.80",
|
|
4
4
|
"description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.0.0"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://crawlee.dev",
|
|
40
40
|
"scripts": {
|
|
41
|
-
"build": "
|
|
41
|
+
"build": "pnpm clean && pnpm compile && pnpm copy",
|
|
42
42
|
"clean": "rimraf ./dist",
|
|
43
43
|
"compile": "tsc -p tsconfig.build.json",
|
|
44
44
|
"copy": "tsx ../../scripts/copy.ts"
|
|
@@ -48,22 +48,26 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@apify/datastructures": "^2.0.3",
|
|
51
|
-
"@
|
|
52
|
-
"@crawlee/browser": "4.0.0-beta.
|
|
53
|
-
"@crawlee/
|
|
54
|
-
"@crawlee/types": "4.0.0-beta.
|
|
55
|
-
"@crawlee/utils": "4.0.0-beta.
|
|
51
|
+
"@crawlee/browser": "4.0.0-beta.80",
|
|
52
|
+
"@crawlee/browser-pool": "4.0.0-beta.80",
|
|
53
|
+
"@crawlee/core": "4.0.0-beta.80",
|
|
54
|
+
"@crawlee/types": "4.0.0-beta.80",
|
|
55
|
+
"@crawlee/utils": "4.0.0-beta.80",
|
|
56
56
|
"cheerio": "^1.0.0",
|
|
57
57
|
"devtools-protocol": "*",
|
|
58
|
-
"idcac-playwright": "^0.
|
|
58
|
+
"idcac-playwright": "^0.2.0",
|
|
59
59
|
"jquery": "^3.7.1",
|
|
60
60
|
"ow": "^2.0.0",
|
|
61
61
|
"tslib": "^2.8.1"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
+
"idcac-playwright": "^0.2.0",
|
|
64
65
|
"puppeteer": "*"
|
|
65
66
|
},
|
|
66
67
|
"peerDependenciesMeta": {
|
|
68
|
+
"idcac-playwright": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
67
71
|
"puppeteer": {
|
|
68
72
|
"optional": true
|
|
69
73
|
}
|
|
@@ -75,5 +79,5 @@
|
|
|
75
79
|
}
|
|
76
80
|
}
|
|
77
81
|
},
|
|
78
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "96c57b4a0c999e4b2bd198792490af28db7aa42d"
|
|
79
83
|
}
|
package/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAElD,OAAO,KAAK,4BAA4B,MAAM,qDAAqD,CAAC;AACpG,YAAY,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAE5F,OAAO,KAAK,cAAc,MAAM,sCAAsC,CAAC;AACvE,YAAY,EACR,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,IAAI,gCAAgC,EAC3D,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,GACtB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,KAAK,sBAAsB,MAAM,6CAA6C,CAAC;AACtF,YAAY,EAAE,qCAAqC,EAAE,MAAM,6CAA6C,CAAC"}
|
package/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAElD,OAAO,KAAK,4BAA4B,MAAM,qDAAqD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eAAe,CAAC,sBAAsB,CAAC,WAAW,EAAE,mCAAmC,CAAC,EACnG,GAAG,sBAAsB,EAC5B,GAAG,aAAa,CAAC;QAElB,KAAK,CACD;YACI,GAAG,sBAAsB;YACzB,QAAQ;SACX,EACD,MAAM,CACT,CAAC;QAfgB,WAAM,GAAN,MAAM,CAAkC;QAiB1D,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC;IAClC,CAAC;IAEkB,yBAAyB;QACxC,MAAM,QAAQ,GAAG,KAAK,CAAC,yBAAyB,EAAE,CAAC;QACnD,OAAO,QAAQ,CAAC,CAAC,CAAE,KAAa,CAAC,CAAC,CAAC,QAAQ,CAAC;IAChD,CAAC;;AAGL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACjC,aAAsC,EACtC,MAAM,GAAG,aAAa,CAAC,eAAe,EAAE;IAExC,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAEvE,OAAO,iBAAiB,CAAC,MAAM,EAAE,CAAC;AACtC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"puppeteer_request_interception.d.ts","sourceRoot":"","sources":["../../../src/internals/utils/puppeteer_request_interception.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAe,WAAW,IAAI,gBAAgB,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAIpF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,gBAAgB,KAAK,OAAO,CAAC;AAsGtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmCrG;AAED;;;;;GAKG;AACH,wBAAsB,6BAA6B,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6BxG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"puppeteer_request_interception.js","sourceRoot":"","sources":["../../../src/internals/utils/puppeteer_request_interception.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,EAAE,MAAM,IAAI,CAAC;AAGpB,OAAO,GAAG,MAAM,YAAY,CAAC;AAI7B,mFAAmF;AACnF,MAAM,+BAA+B,GAAsC,IAAI,OAAO,EAAE,CAAC,CAAC,0DAA0D;AACpJ,MAAM,oCAAoC,GAAG,IAAI,OAAO,EAAE,CAAC,CAAC,oDAAoD;AAChH,MAAM,0BAA0B,GAAG,IAAI,OAAO,EAAE,CAAC,CAAC,0DAA0D;AAE5G;;;GAGG;AACH,MAAM,aAAiB,SAAQ,YAAY;IACvC,GAAG,GAAG,IAAI,GAAG,EAAK,CAAC;IAEnB,GAAG,CAAC,KAAQ;QACR,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACpB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACxB,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAED,MAAM,CAAC,KAAQ;QACX,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC3B,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC;IACzB,CAAC;CACJ;AAED;;GAEG;AACH,SAAS,iBAAiB,CAAC,OAA+B;IACtD,MAAM,YAAY,GAAuB,EAAE,CAAC;IAC5C,wCAAwC;IACxC,KAAK,IAAI,CAAC,GAAG,EAAE,KAAK,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