@crawlee/cheerio 3.0.0-beta.5 → 3.0.0-beta.52
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 +67 -71
- package/index.mjs +7 -0
- package/internals/cheerio-crawler.d.ts +55 -31
- package/internals/cheerio-crawler.d.ts.map +1 -1
- package/internals/cheerio-crawler.js +56 -15
- package/internals/cheerio-crawler.js.map +1 -1
- package/package.json +14 -10
- package/tsconfig.build.tsbuildinfo +1 -1
package/README.md
CHANGED
|
@@ -1,24 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
<h1 align="center">
|
|
2
|
+
<a href="https://apify.github.io/apify-ts/">
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/apify/apify-ts/master/website/static/img/crawlee-dark.svg?sanitize=true">
|
|
5
|
+
<img alt="Crawlee" src="https://raw.githubusercontent.com/apify/apify-ts/master/website/static/img/crawlee-light.svg?sanitize=true" width="500">
|
|
6
|
+
</picture>
|
|
7
|
+
</a>
|
|
8
|
+
<br>
|
|
9
|
+
<small>The scalable web crawling and scraping library for JavaScript</small>
|
|
10
|
+
</h1>
|
|
11
|
+
|
|
12
|
+
<p align=center>
|
|
13
|
+
<a href="https://www.npmjs.com/package/@crawlee/core" rel="nofollow"><img src="https://img.shields.io/npm/v/@crawlee/core/next.svg" alt="NPM dev version" data-canonical-src="https://img.shields.io/npm/v/@crawlee/core/next.svg" style="max-width: 100%;"></a>
|
|
14
|
+
<a href="https://www.npmjs.com/package/@crawlee/core" rel="nofollow"><img src="https://img.shields.io/npm/dm/@crawlee/core.svg" alt="Downloads" data-canonical-src="https://img.shields.io/npm/dm/@crawlee/core.svg" style="max-width: 100%;"></a>
|
|
15
|
+
<a href="https://discord.gg/jyEM2PRvMU" rel="nofollow"><img src="https://img.shields.io/discord/801163717915574323?label=discord" alt="Chat on discord" data-canonical-src="https://img.shields.io/discord/801163717915574323?label=discord" style="max-width: 100%;"></a>
|
|
16
|
+
<a href="https://github.com/apify/apify-ts/actions/workflows/test-and-release.yml"><img src="https://github.com/apify/apify-ts/actions/workflows/test-and-release.yml/badge.svg?branch=master" alt="Build Status" style="max-width: 100%;"></a>
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
Crawlee simplifies the development of web crawlers, scrapers, data extractors and web automation jobs.
|
|
11
20
|
It provides tools to manage and automatically scale a pool of headless browsers,
|
|
12
21
|
to maintain queues of URLs to crawl, store crawling results to a local filesystem or into the cloud,
|
|
13
22
|
rotate proxies and much more.
|
|
14
|
-
The SDK is available as the [`
|
|
23
|
+
The SDK is available as the [`crawlee`](https://www.npmjs.com/package/crawlee) NPM package.
|
|
15
24
|
It can be used either stand-alone in your own applications
|
|
16
25
|
or in [actors](https://docs.apify.com/actor)
|
|
17
26
|
running on the [Apify Cloud](https://apify.com/).
|
|
18
27
|
|
|
19
|
-
**View full documentation, guides and examples on the [
|
|
28
|
+
**View full documentation, guides and examples on the [Crawlee project website](https://apify.github.io/apify-ts/)**
|
|
20
29
|
|
|
21
|
-
> Would you like to work with us on
|
|
30
|
+
> Would you like to work with us on Crawlee or similar projects? [We are hiring!](https://apify.com/jobs#senior-node.js-engineer)
|
|
22
31
|
|
|
23
32
|
## Motivation
|
|
24
33
|
|
|
@@ -35,119 +44,106 @@ Python has [Scrapy](https://scrapy.org/) for these tasks, but there was no such
|
|
|
35
44
|
the web**. The use of JavaScript is natural, since the same language is used to write the scripts as well as the data extraction code running in a
|
|
36
45
|
browser.
|
|
37
46
|
|
|
38
|
-
The goal of
|
|
47
|
+
The goal of Crawlee is to fill this gap and provide a toolbox for generic web scraping, crawling and automation tasks in JavaScript. So don't
|
|
39
48
|
reinvent the wheel every time you need data from the web, and focus on writing code specific to the target website, rather than developing
|
|
40
49
|
commonalities.
|
|
41
50
|
|
|
42
51
|
## Overview
|
|
43
52
|
|
|
44
|
-
|
|
53
|
+
Crawlee is available as the [`crawlee`](https://www.npmjs.com/package/crawlee) NPM package and is also available via `@crawlee/*` packages. It provides the following tools:
|
|
54
|
+
|
|
55
|
+
[//]: # (TODO add links to the docs about `@crawlee/` packages and the `crawlee` metapackage)
|
|
45
56
|
|
|
46
|
-
- [`CheerioCrawler`](https://
|
|
57
|
+
- [`CheerioCrawler`](https://apify.github.io/apify-ts/api/cheerio-crawler/class/CheerioCrawler) - Enables the parallel crawling of a large
|
|
47
58
|
number of web pages using the [cheerio](https://www.npmjs.com/package/cheerio) HTML parser. This is the most
|
|
48
59
|
efficient web crawler, but it does not work on websites that require JavaScript.
|
|
49
60
|
|
|
50
|
-
- [`PuppeteerCrawler`](https://
|
|
61
|
+
- [`PuppeteerCrawler`](https://apify.github.io/apify-ts/api/puppeteer-crawler/class/PuppeteerCrawler) - Enables the parallel crawling of
|
|
51
62
|
a large number of web pages using the headless Chrome browser and [Puppeteer](https://github.com/puppeteer/puppeteer).
|
|
52
63
|
The pool of Chrome browsers is automatically scaled up and down based on available system resources.
|
|
53
64
|
|
|
54
|
-
- [`PlaywrightCrawler`](https://
|
|
65
|
+
- [`PlaywrightCrawler`](https://apify.github.io/apify-ts/api/playwright-crawler/class/PlaywrightCrawler) - Unlike `PuppeteerCrawler`
|
|
55
66
|
you can use [Playwright](https://github.com/microsoft/playwright) to manage almost any headless browser.
|
|
56
67
|
It also provides a cleaner and more mature interface while keeping the ease of use and advanced features.
|
|
57
68
|
|
|
58
|
-
- [`BasicCrawler`](https://
|
|
69
|
+
- [`BasicCrawler`](https://apify.github.io/apify-ts/api/basic-crawler/class/BasicCrawler) - Provides a simple framework for the parallel
|
|
59
70
|
crawling of web pages whose URLs are fed either from a static list or from a dynamic queue of URLs. This class
|
|
60
71
|
serves as a base for the more specialized crawlers above.
|
|
61
72
|
|
|
62
|
-
- [`RequestList`](https://
|
|
73
|
+
- [`RequestList`](https://apify.github.io/apify-ts/api/core/class/RequestList) - Represents a list of URLs to crawl.
|
|
63
74
|
The URLs can be passed in code or in a text file hosted on the web. The list persists its state so that crawling
|
|
64
75
|
can resume when the Node.js process restarts.
|
|
65
76
|
|
|
66
|
-
- [`RequestQueue`](https://
|
|
77
|
+
- [`RequestQueue`](https://apify.github.io/apify-ts/api/core/class/RequestQueue) - Represents a queue of URLs to crawl,
|
|
67
78
|
which is stored either on a local filesystem or in the [Apify Cloud](https://apify.com). The queue is used
|
|
68
79
|
for deep crawling of websites, where you start with several URLs and then recursively follow links to other pages.
|
|
69
80
|
The data structure supports both breadth-first and depth-first crawling orders.
|
|
70
81
|
|
|
71
|
-
- [`Dataset`](https://
|
|
82
|
+
- [`Dataset`](https://apify.github.io/apify-ts/api/core/class/Dataset) - Provides a store for structured data and enables their export
|
|
72
83
|
to formats like JSON, JSONL, CSV, XML, Excel or HTML. The data is stored on a local filesystem or in the Apify Cloud.
|
|
73
84
|
Datasets are useful for storing and sharing large tabular crawling results, such as a list of products or real estate offers.
|
|
74
85
|
|
|
75
|
-
- [`KeyValueStore`](https://
|
|
86
|
+
- [`KeyValueStore`](https://apify.github.io/apify-ts/api/core/class/KeyValueStore) - A simple key-value store for arbitrary data
|
|
76
87
|
records or files, along with their MIME content type. It is ideal for saving screenshots of web pages, PDFs
|
|
77
88
|
or to persist the state of your crawlers. The data is stored on a local filesystem or in the Apify Cloud.
|
|
78
89
|
|
|
79
|
-
- [`AutoscaledPool`](https://
|
|
90
|
+
- [`AutoscaledPool`](https://apify.github.io/apify-ts/api/core/class/AutoscaledPool) - Runs asynchronous background tasks,
|
|
80
91
|
while automatically adjusting the concurrency based on free system memory and CPU usage. This is useful for running
|
|
81
92
|
web scraping tasks at the maximum capacity of the system.
|
|
82
93
|
|
|
83
|
-
- [`Browser Utils`](https://sdk.apify.com/docs/api/puppeteer) - Provides several helper functions useful
|
|
84
|
-
for web scraping. For example, to inject jQuery into web pages or to hide browser origin.
|
|
85
|
-
|
|
86
94
|
Additionally, the package provides various helper functions to simplify running your code on the Apify Cloud and thus
|
|
87
95
|
take advantage of its pool of proxies, job scheduler, data storage, etc.
|
|
88
|
-
For more information, see the [
|
|
96
|
+
For more information, see the [Crawlee Programmer's Reference](https://apify.github.io/apify-ts/).
|
|
89
97
|
|
|
90
98
|
## Quick Start
|
|
91
99
|
|
|
92
|
-
This short tutorial will set you up to start using
|
|
93
|
-
If you want to learn more, proceed to the [Getting Started](https://
|
|
100
|
+
This short tutorial will set you up to start using Crawlee in a minute or two.
|
|
101
|
+
If you want to learn more, proceed to the [Getting Started](https://apify.github.io/apify-ts/docs/guides/getting-started)
|
|
94
102
|
tutorial that will take you step by step through creating your first scraper.
|
|
95
103
|
|
|
96
104
|
### Local stand-alone usage
|
|
97
105
|
|
|
98
|
-
|
|
99
|
-
Add
|
|
106
|
+
Crawlee requires [Node.js](https://nodejs.org/en/) 16 or later.
|
|
107
|
+
Add Crawlee to any Node.js project by running:
|
|
100
108
|
|
|
101
109
|
```bash
|
|
102
|
-
npm install
|
|
110
|
+
npm install @crawlee/playwright playwright
|
|
103
111
|
```
|
|
104
112
|
|
|
105
|
-
> Neither `playwright` nor `puppeteer` are bundled with the SDK to reduce install size and allow greater
|
|
106
|
-
> flexibility. That's why we install it with NPM. You can choose one, both, or neither.
|
|
113
|
+
> Neither `playwright` nor `puppeteer` are bundled with the SDK to reduce install size and allow greater flexibility. That's why we install it with NPM. You can choose one, both, or neither.
|
|
107
114
|
|
|
108
|
-
Run the following example to perform a recursive crawl of a website using Playwright. For more examples showcasing various features of
|
|
109
|
-
[see the Examples section of the documentation](https://
|
|
115
|
+
Run the following example to perform a recursive crawl of a website using Playwright. For more examples showcasing various features of Crawlee,
|
|
116
|
+
[see the Examples section of the documentation](https://apify.github.io/apify-ts/docs/examples/crawl-multiple-urls).
|
|
110
117
|
|
|
111
118
|
```javascript
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
// Extract HTML title of the page.
|
|
124
|
-
const title = await page.title();
|
|
125
|
-
console.log(`Title of ${request.url}: ${title}`);
|
|
126
|
-
|
|
127
|
-
// Add URLs that match the provided pattern.
|
|
128
|
-
await Apify.utils.enqueueLinks({
|
|
129
|
-
page,
|
|
130
|
-
requestQueue,
|
|
131
|
-
pseudoUrls: ['https://www.iana.org/[.*]'],
|
|
132
|
-
});
|
|
133
|
-
},
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
await crawler.run();
|
|
119
|
+
import { PlaywrightCrawler } from '@crawlee/playwright';
|
|
120
|
+
|
|
121
|
+
const crawler = new PlaywrightCrawler({
|
|
122
|
+
async requestHandler({ request, page, enqueueLinks }) {
|
|
123
|
+
// Extract HTML title of the page.
|
|
124
|
+
const title = await page.title();
|
|
125
|
+
console.log(`Title of ${request.url}: ${title}`);
|
|
126
|
+
|
|
127
|
+
// Add URLs from the same subdomain.
|
|
128
|
+
await enqueueLinks();
|
|
129
|
+
},
|
|
137
130
|
});
|
|
131
|
+
|
|
132
|
+
// Choose the first URL to open and run the crawler.
|
|
133
|
+
await crawler.addRequests(['https://www.iana.org/']);
|
|
134
|
+
await crawler.run();
|
|
138
135
|
```
|
|
139
136
|
|
|
140
|
-
When you run the example, you should see
|
|
137
|
+
When you run the example, you should see Crawlee automating a Chrome browser.
|
|
141
138
|
|
|
142
|
-

|
|
143
140
|
|
|
144
|
-
By default,
|
|
145
|
-
`APIFY_LOCAL_STORAGE_DIR` or `APIFY_TOKEN` environment variable. For details, see [Environment variables](https://sdk.apify.com/docs/guides/environment-variables), [Request storage](https://sdk.apify.com/docs/guides/request-storage) and [Result storage](https://sdk.apify.com/docs/guides/result-storage).
|
|
141
|
+
By default, Crawlee stores data to `./crawlee_storage` in the current working directory. You can override this directory via `CRAWLEE_STORAGE_DIR` env var. For details, see [Environment variables](https://apify.github.io/apify-ts/docs/guides/environment-variables), [Request storage](https://apify.github.io/apify-ts/docs/guides/request-storage) and [Result storage](https://apify.github.io/apify-ts/docs/guides/result-storage).
|
|
146
142
|
|
|
147
143
|
### Local usage with Apify command-line interface (CLI)
|
|
148
144
|
|
|
149
145
|
To avoid the need to set the environment variables manually, to create a boilerplate of your project, and to enable pushing and running your code on
|
|
150
|
-
the [Apify platform](https://
|
|
146
|
+
the [Apify platform](https://apify.github.io/apify-ts/docs/guides/apify-platform), you can use the [Apify command-line interface (CLI)](https://github.com/apify/apify-cli) tool.
|
|
151
147
|
|
|
152
148
|
Install the CLI by running:
|
|
153
149
|
|
|
@@ -169,8 +165,8 @@ cd my-hello-world
|
|
|
169
165
|
apify run
|
|
170
166
|
```
|
|
171
167
|
|
|
172
|
-
By default, the crawling data will be stored in a local directory at `./
|
|
173
|
-
be in the default key-value store in `./
|
|
168
|
+
By default, the crawling data will be stored in a local directory at `./crawlee_storage`. For example, the input JSON file for the actor is expected to
|
|
169
|
+
be in the default key-value store in `./crawlee_storage/key_value_stores/default/INPUT.json`.
|
|
174
170
|
|
|
175
171
|
Now you can easily deploy your code to the Apify platform by running:
|
|
176
172
|
|
|
@@ -187,7 +183,7 @@ Your script will be uploaded to the Apify platform and built there so that it ca
|
|
|
187
183
|
|
|
188
184
|
### Usage on the Apify platform
|
|
189
185
|
|
|
190
|
-
You can also develop your web scraping project in an online code editor directly on the [Apify platform](https://
|
|
186
|
+
You can also develop your web scraping project in an online code editor directly on the [Apify platform](https://apify.github.io/apify-ts/docs/guides/apify-platform).
|
|
191
187
|
You'll need to have an Apify Account. Go to [Actors](https://console.apify.com/actors), page in the Apify Console, click <i>Create new</i>
|
|
192
188
|
and then go to the <i>Source</i> tab and start writing your code or paste one of the examples from the Examples section.
|
|
193
189
|
|
|
@@ -195,7 +191,7 @@ For more information, view the [Apify actors quick start guide](https://docs.api
|
|
|
195
191
|
|
|
196
192
|
## Support
|
|
197
193
|
|
|
198
|
-
If you find any bug or issue with
|
|
194
|
+
If you find any bug or issue with Crawlee, please [submit an issue on GitHub](https://github.com/apify/apify-js/issues).
|
|
199
195
|
For questions, you can ask on [Stack Overflow](https://stackoverflow.com/questions/tagged/apify) or contact support@apify.com
|
|
200
196
|
|
|
201
197
|
## Contributing
|
package/index.mjs
CHANGED
|
@@ -9,6 +9,7 @@ export const CheerioCrawler = mod.CheerioCrawler;
|
|
|
9
9
|
export const Configuration = mod.Configuration;
|
|
10
10
|
export const CookieParseError = mod.CookieParseError;
|
|
11
11
|
export const CrawlerExtension = mod.CrawlerExtension;
|
|
12
|
+
export const CriticalError = mod.CriticalError;
|
|
12
13
|
export const DATASET_ITERATORS_DEFAULT_LIMIT = mod.DATASET_ITERATORS_DEFAULT_LIMIT;
|
|
13
14
|
export const Dataset = mod.Dataset;
|
|
14
15
|
export const EVENT_SESSION_RETIRED = mod.EVENT_SESSION_RETIRED;
|
|
@@ -23,6 +24,8 @@ export const Logger = mod.Logger;
|
|
|
23
24
|
export const LoggerJson = mod.LoggerJson;
|
|
24
25
|
export const LoggerText = mod.LoggerText;
|
|
25
26
|
export const MAX_QUERIES_FOR_CONSISTENCY = mod.MAX_QUERIES_FOR_CONSISTENCY;
|
|
27
|
+
export const MissingRouteError = mod.MissingRouteError;
|
|
28
|
+
export const NonRetryableError = mod.NonRetryableError;
|
|
26
29
|
export const ProxyConfiguration = mod.ProxyConfiguration;
|
|
27
30
|
export const QUERY_HEAD_BUFFER = mod.QUERY_HEAD_BUFFER;
|
|
28
31
|
export const QUERY_HEAD_MIN_LENGTH = mod.QUERY_HEAD_MIN_LENGTH;
|
|
@@ -30,6 +33,7 @@ export const REQUESTS_PERSISTENCE_KEY = mod.REQUESTS_PERSISTENCE_KEY;
|
|
|
30
33
|
export const Request = mod.Request;
|
|
31
34
|
export const RequestList = mod.RequestList;
|
|
32
35
|
export const RequestQueue = mod.RequestQueue;
|
|
36
|
+
export const Router = mod.Router;
|
|
33
37
|
export const STATE_PERSISTENCE_KEY = mod.STATE_PERSISTENCE_KEY;
|
|
34
38
|
export const STATUS_CODES_BLOCKED = mod.STATUS_CODES_BLOCKED;
|
|
35
39
|
export const STORAGE_CONSISTENCY_DELAY_MILLIS = mod.STORAGE_CONSISTENCY_DELAY_MILLIS;
|
|
@@ -45,6 +49,8 @@ export const chunkBySize = mod.chunkBySize;
|
|
|
45
49
|
export const constructGlobObjectsFromGlobs = mod.constructGlobObjectsFromGlobs;
|
|
46
50
|
export const constructRegExpObjectsFromPseudoUrls = mod.constructRegExpObjectsFromPseudoUrls;
|
|
47
51
|
export const constructRegExpObjectsFromRegExps = mod.constructRegExpObjectsFromRegExps;
|
|
52
|
+
export const createBasicRouter = mod.createBasicRouter;
|
|
53
|
+
export const createCheerioRouter = mod.createCheerioRouter;
|
|
48
54
|
export const createDeserialize = mod.createDeserialize;
|
|
49
55
|
export const createRequestOptions = mod.createRequestOptions;
|
|
50
56
|
export const createRequests = mod.createRequests;
|
|
@@ -57,6 +63,7 @@ export const handleRequestTimeout = mod.handleRequestTimeout;
|
|
|
57
63
|
export const log = mod.log;
|
|
58
64
|
export const maybeStringify = mod.maybeStringify;
|
|
59
65
|
export const mergeCookies = mod.mergeCookies;
|
|
66
|
+
export const purgeDefaultStorages = mod.purgeDefaultStorages;
|
|
60
67
|
export const resolveBaseUrl = mod.resolveBaseUrl;
|
|
61
68
|
export const serializeArray = mod.serializeArray;
|
|
62
69
|
export const updateEnqueueLinksPatternCache = mod.updateEnqueueLinksPatternCache;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
3
|
+
import type { BasicCrawlerOptions } from '@crawlee/basic';
|
|
4
|
+
import { BasicCrawler } from '@crawlee/basic';
|
|
5
|
+
import type { FailedRequestContext, CrawlingContext, EnqueueLinksOptions, ProxyConfiguration, ProxyInfo, Request, RequestQueue, Session } from '@crawlee/core';
|
|
6
|
+
import { CrawlerExtension } from '@crawlee/core';
|
|
7
|
+
import type { BatchAddRequestsResult, Awaitable, Dictionary } from '@crawlee/types';
|
|
8
|
+
import type { CheerioRoot } from '@crawlee/utils';
|
|
9
|
+
import type { RequestLike, ResponseLike } from 'content-type';
|
|
10
|
+
import type { OptionsInit, Response as GotResponse, GotOptionsInit } from 'got-scraping';
|
|
11
|
+
import type { IncomingMessage } from 'http';
|
|
12
|
+
export interface CheerioFailedRequestContext<UserData extends Dictionary = Dictionary, JSONData = Dictionary> extends FailedRequestContext<CheerioCrawler<JSONData, UserData>, UserData>, CheerioCrawlingContext<UserData, JSONData> {
|
|
11
13
|
}
|
|
12
|
-
export declare type CheerioFailedRequestHandler<JSONData = Dictionary> = (inputs:
|
|
13
|
-
export interface CheerioCrawlerOptions<JSONData = Dictionary> extends Omit<BasicCrawlerOptions<CheerioCrawlingContext<JSONData>>, 'requestHandler' | 'handleRequestFunction' | 'failedRequestHandler' | 'handleFailedRequestFunction' | 'handleRequestTimeoutSecs'> {
|
|
14
|
+
export declare type CheerioFailedRequestHandler<JSONData = Dictionary> = (inputs: CheerioFailedRequestContext<JSONData>) => Awaitable<void>;
|
|
15
|
+
export interface CheerioCrawlerOptions<UserData = Dictionary, JSONData = Dictionary> extends Omit<BasicCrawlerOptions<CheerioCrawlingContext<UserData, JSONData>>, 'requestHandler' | 'handleRequestFunction' | 'failedRequestHandler' | 'handleFailedRequestFunction' | 'handleRequestTimeoutSecs'> {
|
|
14
16
|
/**
|
|
15
17
|
* User-provided function that performs the logic of the crawler. It is called for each page
|
|
16
18
|
* loaded and parsed by the crawler.
|
|
@@ -65,13 +67,13 @@ export interface CheerioCrawlerOptions<JSONData = Dictionary> extends Omit<Basic
|
|
|
65
67
|
* If the function throws an exception, the crawler will try to re-crawl the
|
|
66
68
|
* request later, up to `option.maxRequestRetries` times.
|
|
67
69
|
* If all the retries fail, the crawler calls the function
|
|
68
|
-
* provided to the `
|
|
70
|
+
* provided to the `failedRequestHandler` parameter.
|
|
69
71
|
* To make this work, you should **always**
|
|
70
72
|
* let your function throw exceptions rather than catch them.
|
|
71
73
|
* The exceptions are logged to the request using the
|
|
72
74
|
* {@link Request.pushErrorMessage} function.
|
|
73
75
|
*/
|
|
74
|
-
requestHandler
|
|
76
|
+
requestHandler?: CheerioRequestHandler<JSONData>;
|
|
75
77
|
/**
|
|
76
78
|
* User-provided function that performs the logic of the crawler. It is called for each page
|
|
77
79
|
* loaded and parsed by the crawler.
|
|
@@ -126,7 +128,7 @@ export interface CheerioCrawlerOptions<JSONData = Dictionary> extends Omit<Basic
|
|
|
126
128
|
* If the function throws an exception, the crawler will try to re-crawl the
|
|
127
129
|
* request later, up to `option.maxRequestRetries` times.
|
|
128
130
|
* If all the retries fail, the crawler calls the function
|
|
129
|
-
* provided to the `
|
|
131
|
+
* provided to the `failedRequestHandler` parameter.
|
|
130
132
|
* To make this work, you should **always**
|
|
131
133
|
* let your function throw exceptions rather than catch them.
|
|
132
134
|
* The exceptions are logged to the request using the
|
|
@@ -138,7 +140,7 @@ export interface CheerioCrawlerOptions<JSONData = Dictionary> extends Omit<Basic
|
|
|
138
140
|
/**
|
|
139
141
|
* Timeout in which the HTTP request to the resource needs to finish, given in seconds.
|
|
140
142
|
*/
|
|
141
|
-
|
|
143
|
+
navigationTimeoutSecs?: number;
|
|
142
144
|
/**
|
|
143
145
|
* If set to true, SSL certificate errors will be ignored.
|
|
144
146
|
*/
|
|
@@ -169,7 +171,7 @@ export interface CheerioCrawlerOptions<JSONData = Dictionary> extends Omit<Basic
|
|
|
169
171
|
* where the {@link Request} instance corresponds to the failed request, and the `Error` instance
|
|
170
172
|
* represents the last error thrown during processing of the request.
|
|
171
173
|
*
|
|
172
|
-
* See [source code](https://github.com/apify/apify-
|
|
174
|
+
* See [source code](https://github.com/apify/apify-ts/blob/master/src/crawlers/cheerio_crawler.js#L13)
|
|
173
175
|
* for the default implementation of this function.
|
|
174
176
|
*/
|
|
175
177
|
failedRequestHandler?: CheerioFailedRequestHandler<JSONData>;
|
|
@@ -193,7 +195,7 @@ export interface CheerioCrawlerOptions<JSONData = Dictionary> extends Omit<Basic
|
|
|
193
195
|
* where the {@link Request} instance corresponds to the failed request, and the `Error` instance
|
|
194
196
|
* represents the last error thrown during processing of the request.
|
|
195
197
|
*
|
|
196
|
-
* See [source code](https://github.com/apify/apify-
|
|
198
|
+
* See [source code](https://github.com/apify/apify-ts/blob/master/src/crawlers/cheerio_crawler.js#L13)
|
|
197
199
|
* for the default implementation of this function.
|
|
198
200
|
*
|
|
199
201
|
* @deprecated `handleFailedRequestFunction` has been renamed to `failedRequestHandler` and will be removed in a future version.
|
|
@@ -300,7 +302,7 @@ export interface PostResponseInputs<JSONData = Dictionary> {
|
|
|
300
302
|
crawler: CheerioCrawler<JSONData>;
|
|
301
303
|
}
|
|
302
304
|
export declare type PostResponse<JSONData = Dictionary> = (inputs: PostResponseInputs<JSONData>) => Awaitable<void>;
|
|
303
|
-
export interface
|
|
305
|
+
export interface CheerioCrawlingContext<UserData extends Dictionary = Dictionary, JSONData = Dictionary> extends CrawlingContext<UserData> {
|
|
304
306
|
/**
|
|
305
307
|
* The [Cheerio](https://cheerio.js.org/) object with parsed HTML.
|
|
306
308
|
*/
|
|
@@ -320,12 +322,12 @@ export interface CheerioRequestHandlerInputs<JSONData = Dictionary> extends Craw
|
|
|
320
322
|
type: string;
|
|
321
323
|
encoding: string;
|
|
322
324
|
};
|
|
323
|
-
crawler: CheerioCrawler<JSONData>;
|
|
325
|
+
crawler: CheerioCrawler<JSONData, UserData>;
|
|
324
326
|
response: IncomingMessage;
|
|
325
327
|
enqueueLinks: (options?: CheerioCrawlerEnqueueLinksOptions) => Promise<BatchAddRequestsResult>;
|
|
328
|
+
sendRequest: (overrideOptions?: Partial<GotOptionsInit>) => Promise<GotResponse<string>>;
|
|
326
329
|
}
|
|
327
|
-
export declare type
|
|
328
|
-
export declare type CheerioRequestHandler<JSONData = Dictionary> = (inputs: CheerioRequestHandlerInputs<JSONData>) => Awaitable<void>;
|
|
330
|
+
export declare type CheerioRequestHandler<JSONData = Dictionary> = (inputs: CheerioCrawlingContext<JSONData>) => Awaitable<void>;
|
|
329
331
|
export declare type CheerioCrawlerEnqueueLinksOptions = Omit<EnqueueLinksOptions, 'urls' | 'requestQueue'>;
|
|
330
332
|
/**
|
|
331
333
|
* Provides a framework for the parallel crawling of web pages using plain HTTP requests and
|
|
@@ -391,7 +393,7 @@ export declare type CheerioCrawlerEnqueueLinksOptions = Omit<EnqueueLinksOptions
|
|
|
391
393
|
* // Crawl the URLs
|
|
392
394
|
* const crawler = new CheerioCrawler({
|
|
393
395
|
* requestList,
|
|
394
|
-
*
|
|
396
|
+
* async requestHandler({ request, response, body, contentType, $ }) {
|
|
395
397
|
* const data = [];
|
|
396
398
|
*
|
|
397
399
|
* // Do some data extraction from the page with Cheerio.
|
|
@@ -400,7 +402,7 @@ export declare type CheerioCrawlerEnqueueLinksOptions = Omit<EnqueueLinksOptions
|
|
|
400
402
|
* });
|
|
401
403
|
*
|
|
402
404
|
* // Save the data to dataset.
|
|
403
|
-
* await
|
|
405
|
+
* await Dataset.pushData({
|
|
404
406
|
* url: request.url,
|
|
405
407
|
* html: body,
|
|
406
408
|
* data,
|
|
@@ -412,7 +414,7 @@ export declare type CheerioCrawlerEnqueueLinksOptions = Omit<EnqueueLinksOptions
|
|
|
412
414
|
* ```
|
|
413
415
|
* @category Crawlers
|
|
414
416
|
*/
|
|
415
|
-
export declare class CheerioCrawler<JSONData = Dictionary> extends BasicCrawler<CheerioCrawlingContext<JSONData>,
|
|
417
|
+
export declare class CheerioCrawler<JSONData = Dictionary, UserData extends Dictionary = Dictionary> extends BasicCrawler<CheerioCrawlingContext<JSONData>, CheerioFailedRequestContext<UserData, JSONData>> {
|
|
416
418
|
/**
|
|
417
419
|
* A reference to the underlying {@link ProxyConfiguration} class that manages the crawler's proxies.
|
|
418
420
|
* Only available if used by the crawler.
|
|
@@ -422,14 +424,14 @@ export declare class CheerioCrawler<JSONData = Dictionary> extends BasicCrawler<
|
|
|
422
424
|
protected preNavigationHooks: CheerioHook<JSONData>[];
|
|
423
425
|
protected postNavigationHooks: CheerioHook<JSONData>[];
|
|
424
426
|
protected persistCookiesPerSession: boolean;
|
|
425
|
-
protected
|
|
427
|
+
protected navigationTimeoutMillis: number;
|
|
426
428
|
protected ignoreSslErrors: boolean;
|
|
427
429
|
protected suggestResponseEncoding?: string;
|
|
428
430
|
protected forceResponseEncoding?: string;
|
|
429
431
|
protected readonly supportedMimeTypes: Set<string>;
|
|
430
432
|
protected static optionsShape: {
|
|
431
433
|
handlePageFunction: import("ow").Predicate<Function> & import("ow").BasePredicate<Function | undefined>;
|
|
432
|
-
|
|
434
|
+
navigationTimeoutSecs: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
433
435
|
ignoreSslErrors: import("ow").BooleanPredicate & import("ow").BasePredicate<boolean | undefined>;
|
|
434
436
|
additionalMimeTypes: import("ow").ArrayPredicate<string>;
|
|
435
437
|
suggestResponseEncoding: import("ow").StringPredicate & import("ow").BasePredicate<string | undefined>;
|
|
@@ -442,10 +444,7 @@ export declare class CheerioCrawler<JSONData = Dictionary> extends BasicCrawler<
|
|
|
442
444
|
requestQueue: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
443
445
|
requestHandler: import("ow").Predicate<Function> & import("ow").BasePredicate<Function | undefined>;
|
|
444
446
|
handleRequestFunction: import("ow").Predicate<Function> & import("ow").BasePredicate<Function | undefined>;
|
|
445
|
-
requestHandlerTimeoutSecs: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
446
|
-
* An object with information about currently used proxy by the crawler
|
|
447
|
-
* and configured by the {@link ProxyConfiguration} class.
|
|
448
|
-
*/
|
|
447
|
+
requestHandlerTimeoutSecs: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
449
448
|
handleRequestTimeoutSecs: import("ow").NumberPredicate & import("ow").BasePredicate<number | undefined>;
|
|
450
449
|
failedRequestHandler: import("ow").Predicate<Function> & import("ow").BasePredicate<Function | undefined>;
|
|
451
450
|
handleFailedRequestFunction: import("ow").Predicate<Function> & import("ow").BasePredicate<Function | undefined>;
|
|
@@ -461,7 +460,7 @@ export declare class CheerioCrawler<JSONData = Dictionary> extends BasicCrawler<
|
|
|
461
460
|
/**
|
|
462
461
|
* All `CheerioCrawler` parameters are passed via an options object.
|
|
463
462
|
*/
|
|
464
|
-
constructor(options
|
|
463
|
+
constructor(options?: CheerioCrawlerOptions<JSONData>);
|
|
465
464
|
/**
|
|
466
465
|
* **EXPERIMENTAL**
|
|
467
466
|
* Function for attaching CrawlerExtensions such as the Unblockers.
|
|
@@ -469,7 +468,7 @@ export declare class CheerioCrawler<JSONData = Dictionary> extends BasicCrawler<
|
|
|
469
468
|
*/
|
|
470
469
|
use(extension: CrawlerExtension): void;
|
|
471
470
|
/**
|
|
472
|
-
* Wrapper around
|
|
471
|
+
* Wrapper around requestHandler that opens and closes pages etc.
|
|
473
472
|
*/
|
|
474
473
|
protected _runRequestHandler(crawlingContext: CheerioCrawlingContext<JSONData>): Promise<void>;
|
|
475
474
|
protected _handleNavigation(crawlingContext: CheerioCrawlingContext<JSONData>): Promise<void>;
|
|
@@ -545,5 +544,30 @@ interface RequestFunctionOptions {
|
|
|
545
544
|
proxyUrl?: string;
|
|
546
545
|
gotOptions: OptionsInit;
|
|
547
546
|
}
|
|
547
|
+
/**
|
|
548
|
+
* Creates new {@link Router} instance that works based on request labels.
|
|
549
|
+
* This instance can then serve as a `requestHandler` of your {@link CheerioCrawler}.
|
|
550
|
+
* Defaults to the {@link CheerioCrawlingContext}.
|
|
551
|
+
*
|
|
552
|
+
* > Serves as a shortcut for using `Router.create<CheerioCrawlingContext>()`.
|
|
553
|
+
*
|
|
554
|
+
* ```ts
|
|
555
|
+
* import { CheerioCrawler, createCheerioRouter } from 'crawlee';
|
|
556
|
+
*
|
|
557
|
+
* const router = createCheerioRouter();
|
|
558
|
+
* router.addHandler('label-a', async (ctx) => {
|
|
559
|
+
* ctx.log.info('...');
|
|
560
|
+
* });
|
|
561
|
+
* router.addDefaultHandler(async (ctx) => {
|
|
562
|
+
* ctx.log.info('...');
|
|
563
|
+
* });
|
|
564
|
+
*
|
|
565
|
+
* const crawler = new CheerioCrawler({
|
|
566
|
+
* requestHandler: router,
|
|
567
|
+
* });
|
|
568
|
+
* await crawler.run();
|
|
569
|
+
* ```
|
|
570
|
+
*/
|
|
571
|
+
export declare function createCheerioRouter<Context extends CheerioCrawlingContext = CheerioCrawlingContext>(): import("@crawlee/basic").RouterHandler<Context>;
|
|
548
572
|
export {};
|
|
549
573
|
//# sourceMappingURL=cheerio-crawler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cheerio-crawler.d.ts","sourceRoot":"","sources":["../../src/internals/cheerio-crawler.ts"],"names":[],"mappings":";;AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"cheerio-crawler.d.ts","sourceRoot":"","sources":["../../src/internals/cheerio-crawler.ts"],"names":[],"mappings":";;AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EACH,YAAY,EAEf,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACR,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,OAAO,EACP,YAAY,EACZ,OAAO,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EACH,gBAAgB,EAMnB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,sBAAsB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,c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