@crawlee/cheerio 4.0.0-beta.17 → 4.0.0-beta.19
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.
|
@@ -82,11 +82,11 @@ JSONData extends Dictionary = any> = RequestHandler<CheerioCrawlingContext<UserD
|
|
|
82
82
|
*
|
|
83
83
|
* The crawler finishes when there are no more {@link Request} objects to crawl.
|
|
84
84
|
*
|
|
85
|
-
* We can use the `preNavigationHooks` to adjust
|
|
85
|
+
* We can use the `preNavigationHooks` to adjust the crawling context before the request is made:
|
|
86
86
|
*
|
|
87
87
|
* ```
|
|
88
88
|
* preNavigationHooks: [
|
|
89
|
-
* (crawlingContext
|
|
89
|
+
* (crawlingContext) => {
|
|
90
90
|
* // ...
|
|
91
91
|
* },
|
|
92
92
|
* ]
|
|
@@ -28,11 +28,11 @@ import { parseDocument } from 'htmlparser2';
|
|
|
28
28
|
*
|
|
29
29
|
* The crawler finishes when there are no more {@link Request} objects to crawl.
|
|
30
30
|
*
|
|
31
|
-
* We can use the `preNavigationHooks` to adjust
|
|
31
|
+
* We can use the `preNavigationHooks` to adjust the crawling context before the request is made:
|
|
32
32
|
*
|
|
33
33
|
* ```
|
|
34
34
|
* preNavigationHooks: [
|
|
35
|
-
* (crawlingContext
|
|
35
|
+
* (crawlingContext) => {
|
|
36
36
|
* // ...
|
|
37
37
|
* },
|
|
38
38
|
* ]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/cheerio",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.19",
|
|
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"
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@crawlee/http": "4.0.0-beta.
|
|
51
|
-
"@crawlee/types": "4.0.0-beta.
|
|
52
|
-
"@crawlee/utils": "4.0.0-beta.
|
|
50
|
+
"@crawlee/http": "4.0.0-beta.19",
|
|
51
|
+
"@crawlee/types": "4.0.0-beta.19",
|
|
52
|
+
"@crawlee/utils": "4.0.0-beta.19",
|
|
53
53
|
"cheerio": "^1.0.0",
|
|
54
54
|
"htmlparser2": "^10.0.0",
|
|
55
55
|
"tslib": "^2.8.1"
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "690af03140bea34c9a8871d370607cd52339caa0"
|
|
65
65
|
}
|