@crawlee/puppeteer 4.0.0-beta.211 → 4.0.0-beta.213
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.
|
@@ -248,7 +248,6 @@ export declare class PuppeteerCrawler<ContextExtension = Dictionary<never>, Exte
|
|
|
248
248
|
* All `PuppeteerCrawler` parameters are passed via an options object.
|
|
249
249
|
*/
|
|
250
250
|
constructor(options?: PuppeteerCrawlerOptions<ContextExtension, ExtendedContext, Routes, StatisticStateExtension>);
|
|
251
|
-
private enhanceContext;
|
|
252
251
|
protected navigationHandler(crawlingContext: PuppeteerCrawlingContext, gotoOptions: DirectNavigationOptions): Promise<HTTPResponse | null>;
|
|
253
252
|
}
|
|
254
253
|
/**
|
|
@@ -110,9 +110,9 @@ export class PuppeteerCrawler extends BrowserCrawler {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
#buildContextPipeline() {
|
|
113
|
-
return this.buildContextPipeline().compose(this
|
|
113
|
+
return this.buildContextPipeline().compose(this.#enhanceContext.bind(this));
|
|
114
114
|
}
|
|
115
|
-
async enhanceContext(context) {
|
|
115
|
+
async #enhanceContext(context) {
|
|
116
116
|
const waitForSelector = async (selector, timeoutMs = 5_000) => {
|
|
117
117
|
await context.page.waitForSelector(selector, { timeout: timeoutMs });
|
|
118
118
|
};
|
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.213",
|
|
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"
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@apify/datastructures": "^3.0.1",
|
|
51
|
-
"@crawlee/browser": "4.0.0-beta.
|
|
52
|
-
"@crawlee/browser-pool": "4.0.0-beta.
|
|
53
|
-
"@crawlee/core": "4.0.0-beta.
|
|
54
|
-
"@crawlee/types": "4.0.0-beta.
|
|
55
|
-
"@crawlee/utils": "4.0.0-beta.
|
|
51
|
+
"@crawlee/browser": "4.0.0-beta.213",
|
|
52
|
+
"@crawlee/browser-pool": "4.0.0-beta.213",
|
|
53
|
+
"@crawlee/core": "4.0.0-beta.213",
|
|
54
|
+
"@crawlee/types": "4.0.0-beta.213",
|
|
55
|
+
"@crawlee/utils": "4.0.0-beta.213",
|
|
56
56
|
"cheerio": "^1.0.0",
|
|
57
57
|
"devtools-protocol": "*",
|
|
58
58
|
"jquery": "^3.7.1",
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "99d9370281d90291b8d20b4ad597fc2d0bcbcd80"
|
|
78
78
|
}
|