@crawlee/basic 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 +68 -0
- package/internals/basic-crawler.d.ts +53 -29
- package/internals/basic-crawler.d.ts.map +1 -1
- package/internals/basic-crawler.js +86 -15
- package/internals/basic-crawler.js.map +1 -1
- package/internals/constants.d.ts +1 -1
- package/internals/constants.js +1 -1
- package/package.json +23 -22
- 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
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import mod from "./index.js";
|
|
2
|
+
|
|
3
|
+
export default mod;
|
|
4
|
+
export const API_PROCESSED_REQUESTS_DELAY_MILLIS = mod.API_PROCESSED_REQUESTS_DELAY_MILLIS;
|
|
5
|
+
export const AutoscaledPool = mod.AutoscaledPool;
|
|
6
|
+
export const BASIC_CRAWLER_TIMEOUT_BUFFER_SECS = mod.BASIC_CRAWLER_TIMEOUT_BUFFER_SECS;
|
|
7
|
+
export const BasicCrawler = mod.BasicCrawler;
|
|
8
|
+
export const Configuration = mod.Configuration;
|
|
9
|
+
export const CookieParseError = mod.CookieParseError;
|
|
10
|
+
export const CrawlerExtension = mod.CrawlerExtension;
|
|
11
|
+
export const CriticalError = mod.CriticalError;
|
|
12
|
+
export const DATASET_ITERATORS_DEFAULT_LIMIT = mod.DATASET_ITERATORS_DEFAULT_LIMIT;
|
|
13
|
+
export const Dataset = mod.Dataset;
|
|
14
|
+
export const EVENT_SESSION_RETIRED = mod.EVENT_SESSION_RETIRED;
|
|
15
|
+
export const EnqueueStrategy = mod.EnqueueStrategy;
|
|
16
|
+
export const EventManager = mod.EventManager;
|
|
17
|
+
export const EventType = mod.EventType;
|
|
18
|
+
export const KeyValueStore = mod.KeyValueStore;
|
|
19
|
+
export const LocalEventManager = mod.LocalEventManager;
|
|
20
|
+
export const Log = mod.Log;
|
|
21
|
+
export const LogLevel = mod.LogLevel;
|
|
22
|
+
export const Logger = mod.Logger;
|
|
23
|
+
export const LoggerJson = mod.LoggerJson;
|
|
24
|
+
export const LoggerText = mod.LoggerText;
|
|
25
|
+
export const MAX_QUERIES_FOR_CONSISTENCY = mod.MAX_QUERIES_FOR_CONSISTENCY;
|
|
26
|
+
export const MissingRouteError = mod.MissingRouteError;
|
|
27
|
+
export const NonRetryableError = mod.NonRetryableError;
|
|
28
|
+
export const ProxyConfiguration = mod.ProxyConfiguration;
|
|
29
|
+
export const QUERY_HEAD_BUFFER = mod.QUERY_HEAD_BUFFER;
|
|
30
|
+
export const QUERY_HEAD_MIN_LENGTH = mod.QUERY_HEAD_MIN_LENGTH;
|
|
31
|
+
export const REQUESTS_PERSISTENCE_KEY = mod.REQUESTS_PERSISTENCE_KEY;
|
|
32
|
+
export const Request = mod.Request;
|
|
33
|
+
export const RequestList = mod.RequestList;
|
|
34
|
+
export const RequestQueue = mod.RequestQueue;
|
|
35
|
+
export const Router = mod.Router;
|
|
36
|
+
export const STATE_PERSISTENCE_KEY = mod.STATE_PERSISTENCE_KEY;
|
|
37
|
+
export const STATUS_CODES_BLOCKED = mod.STATUS_CODES_BLOCKED;
|
|
38
|
+
export const STORAGE_CONSISTENCY_DELAY_MILLIS = mod.STORAGE_CONSISTENCY_DELAY_MILLIS;
|
|
39
|
+
export const Session = mod.Session;
|
|
40
|
+
export const SessionPool = mod.SessionPool;
|
|
41
|
+
export const Snapshotter = mod.Snapshotter;
|
|
42
|
+
export const Statistics = mod.Statistics;
|
|
43
|
+
export const StorageManager = mod.StorageManager;
|
|
44
|
+
export const SystemStatus = mod.SystemStatus;
|
|
45
|
+
export const checkAndSerialize = mod.checkAndSerialize;
|
|
46
|
+
export const chunkBySize = mod.chunkBySize;
|
|
47
|
+
export const constructGlobObjectsFromGlobs = mod.constructGlobObjectsFromGlobs;
|
|
48
|
+
export const constructRegExpObjectsFromPseudoUrls = mod.constructRegExpObjectsFromPseudoUrls;
|
|
49
|
+
export const constructRegExpObjectsFromRegExps = mod.constructRegExpObjectsFromRegExps;
|
|
50
|
+
export const createBasicRouter = mod.createBasicRouter;
|
|
51
|
+
export const createDeserialize = mod.createDeserialize;
|
|
52
|
+
export const createRequestOptions = mod.createRequestOptions;
|
|
53
|
+
export const createRequests = mod.createRequests;
|
|
54
|
+
export const deserializeArray = mod.deserializeArray;
|
|
55
|
+
export const diffCookies = mod.diffCookies;
|
|
56
|
+
export const enqueueLinks = mod.enqueueLinks;
|
|
57
|
+
export const getCookiesFromResponse = mod.getCookiesFromResponse;
|
|
58
|
+
export const getRequestId = mod.getRequestId;
|
|
59
|
+
export const handleRequestTimeout = mod.handleRequestTimeout;
|
|
60
|
+
export const log = mod.log;
|
|
61
|
+
export const maybeStringify = mod.maybeStringify;
|
|
62
|
+
export const mergeCookies = mod.mergeCookies;
|
|
63
|
+
export const purgeDefaultStorages = mod.purgeDefaultStorages;
|
|
64
|
+
export const resolveBaseUrl = mod.resolveBaseUrl;
|
|
65
|
+
export const serializeArray = mod.serializeArray;
|
|
66
|
+
export const updateEnqueueLinksPatternCache = mod.updateEnqueueLinksPatternCache;
|
|
67
|
+
export const validateGlobPattern = mod.validateGlobPattern;
|
|
68
|
+
export const validators = mod.validators;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { Log } from '@apify/log';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Awaitable } from '@crawlee/
|
|
6
|
-
export interface
|
|
1
|
+
import type { Log } from '@apify/log';
|
|
2
|
+
import type { AutoscaledPoolOptions, EnqueueLinksOptions, EventManager, FailedRequestContext, FinalStatistics, ProxyInfo, QueueOperationInfo, Request, RequestList, RequestOptions, RequestQueueOperationOptions, RouterHandler, Session, SessionPoolOptions } from '@crawlee/core';
|
|
3
|
+
import { AutoscaledPool, Configuration, type CrawlingContext, RequestQueue, SessionPool, Statistics } from '@crawlee/core';
|
|
4
|
+
import type { GotOptionsInit, Response as GotResponse } from 'got-scraping';
|
|
5
|
+
import type { ProcessedRequest, Dictionary, Awaitable } from '@crawlee/types';
|
|
6
|
+
export interface BasicCrawlingContext<UserData extends Dictionary = Dictionary> extends CrawlingContext<UserData> {
|
|
7
7
|
crawler: BasicCrawler;
|
|
8
8
|
enqueueLinks: (options: BasicCrawlerEnqueueLinksOptions) => Promise<QueueOperationInfo[]>;
|
|
9
|
-
sendRequest: (
|
|
9
|
+
sendRequest: (overrideOptions?: Partial<GotOptionsInit>) => Promise<GotResponse<string>>;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
12
|
-
crawler: BasicCrawler;
|
|
11
|
+
export interface BasicFailedRequestContext<UserData extends Dictionary = Dictionary> extends FailedRequestContext<BasicCrawler, UserData> {
|
|
13
12
|
}
|
|
14
13
|
/** @internal */
|
|
15
14
|
export declare type BasicCrawlerEnqueueLinksOptions = Omit<EnqueueLinksOptions, 'requestQueue'>;
|
|
16
|
-
export declare type RequestHandler<Context extends CrawlingContext =
|
|
17
|
-
export declare type FailedRequestHandler<Inputs extends
|
|
18
|
-
export interface BasicCrawlerOptions<Context extends CrawlingContext =
|
|
15
|
+
export declare type RequestHandler<Context extends CrawlingContext = BasicCrawlingContext> = (inputs: Context) => Awaitable<void>;
|
|
16
|
+
export declare type FailedRequestHandler<Inputs extends FailedRequestContext = BasicFailedRequestContext> = (inputs: Inputs) => Awaitable<void>;
|
|
17
|
+
export interface BasicCrawlerOptions<Context extends CrawlingContext = BasicCrawlingContext, ErrorContext extends FailedRequestContext = BasicFailedRequestContext> {
|
|
19
18
|
/**
|
|
20
19
|
* User-provided function that performs the logic of the crawler. It is called for each URL to crawl.
|
|
21
20
|
*
|
|
@@ -34,13 +33,13 @@ export interface BasicCrawlerOptions<Context extends CrawlingContext = BasicCraw
|
|
|
34
33
|
* If the function throws an exception, the crawler will try to re-crawl the
|
|
35
34
|
* request later, up to `option.maxRequestRetries` times.
|
|
36
35
|
* If all the retries fail, the crawler calls the function
|
|
37
|
-
* provided to the `
|
|
36
|
+
* provided to the `failedRequestHandler` parameter.
|
|
38
37
|
* To make this work, you should **always**
|
|
39
38
|
* let your function throw exceptions rather than catch them.
|
|
40
39
|
* The exceptions are logged to the request using the
|
|
41
40
|
* {@link Request.pushErrorMessage} function.
|
|
42
41
|
*/
|
|
43
|
-
requestHandler
|
|
42
|
+
requestHandler?: RequestHandler<Context>;
|
|
44
43
|
/**
|
|
45
44
|
* User-provided function that performs the logic of the crawler. It is called for each URL to crawl.
|
|
46
45
|
*
|
|
@@ -59,7 +58,7 @@ export interface BasicCrawlerOptions<Context extends CrawlingContext = BasicCraw
|
|
|
59
58
|
* If the function throws an exception, the crawler will try to re-crawl the
|
|
60
59
|
* request later, up to `option.maxRequestRetries` times.
|
|
61
60
|
* If all the retries fail, the crawler calls the function
|
|
62
|
-
* provided to the `
|
|
61
|
+
* provided to the `failedRequestHandler` parameter.
|
|
63
62
|
* To make this work, you should **always**
|
|
64
63
|
* let your function throw exceptions rather than catch them.
|
|
65
64
|
* The exceptions are logged to the request using the
|
|
@@ -103,10 +102,6 @@ export interface BasicCrawlerOptions<Context extends CrawlingContext = BasicCraw
|
|
|
103
102
|
* ```
|
|
104
103
|
* where the {@link Request} instance corresponds to the failed request, and the `Error` instance
|
|
105
104
|
* represents the last error thrown during processing of the request.
|
|
106
|
-
*
|
|
107
|
-
* See
|
|
108
|
-
* [source code](https://github.com/apify/apify-js/blob/master/src/crawlers/basic_crawler.js#L11)
|
|
109
|
-
* for the default implementation of this function.
|
|
110
105
|
*/
|
|
111
106
|
failedRequestHandler?: FailedRequestHandler<ErrorContext>;
|
|
112
107
|
/**
|
|
@@ -124,15 +119,11 @@ export interface BasicCrawlerOptions<Context extends CrawlingContext = BasicCraw
|
|
|
124
119
|
* where the {@link Request} instance corresponds to the failed request, and the `Error` instance
|
|
125
120
|
* represents the last error thrown during processing of the request.
|
|
126
121
|
*
|
|
127
|
-
* See
|
|
128
|
-
* [source code](https://github.com/apify/apify-js/blob/master/src/crawlers/basic_crawler.js#L11)
|
|
129
|
-
* for the default implementation of this function.
|
|
130
|
-
*
|
|
131
122
|
* @deprecated `handleFailedRequestFunction` has been renamed to `failedRequestHandler` and will be removed in a future version.
|
|
132
123
|
*/
|
|
133
124
|
handleFailedRequestFunction?: FailedRequestHandler<ErrorContext>;
|
|
134
125
|
/**
|
|
135
|
-
* Indicates how many times the request is retried if {@link requestHandler}
|
|
126
|
+
* Indicates how many times the request is retried if {@link requestHandler} fails.
|
|
136
127
|
* @default 3
|
|
137
128
|
*/
|
|
138
129
|
maxRequestRetries?: number;
|
|
@@ -203,7 +194,7 @@ export interface BasicCrawlerOptions<Context extends CrawlingContext = BasicCraw
|
|
|
203
194
|
* **Example usage:**
|
|
204
195
|
*
|
|
205
196
|
* ```javascript
|
|
206
|
-
*
|
|
197
|
+
* import { gotScraping } from 'got-scraping';
|
|
207
198
|
*
|
|
208
199
|
* // Prepare a list of URLs to crawl
|
|
209
200
|
* const requestList = new RequestList({
|
|
@@ -227,7 +218,7 @@ export interface BasicCrawlerOptions<Context extends CrawlingContext = BasicCraw
|
|
|
227
218
|
* headers: request.headers,
|
|
228
219
|
* });
|
|
229
220
|
*
|
|
230
|
-
* await
|
|
221
|
+
* await Dataset.pushData({
|
|
231
222
|
* url: request.url,
|
|
232
223
|
* html: body,
|
|
233
224
|
* })
|
|
@@ -238,8 +229,9 @@ export interface BasicCrawlerOptions<Context extends CrawlingContext = BasicCraw
|
|
|
238
229
|
* ```
|
|
239
230
|
* @category Crawlers
|
|
240
231
|
*/
|
|
241
|
-
export declare class BasicCrawler<Context extends CrawlingContext =
|
|
232
|
+
export declare class BasicCrawler<Context extends CrawlingContext = BasicCrawlingContext, ErrorContext extends FailedRequestContext = BasicFailedRequestContext> {
|
|
242
233
|
readonly config: Configuration;
|
|
234
|
+
private static readonly CRAWLEE_STATE_KEY;
|
|
243
235
|
/**
|
|
244
236
|
* Static list of URLs to be processed.
|
|
245
237
|
*/
|
|
@@ -270,6 +262,11 @@ export declare class BasicCrawler<Context extends CrawlingContext = BasicCrawler
|
|
|
270
262
|
* or to abort it by calling {@link AutoscaledPool.abort}.
|
|
271
263
|
*/
|
|
272
264
|
autoscaledPool?: AutoscaledPool;
|
|
265
|
+
/**
|
|
266
|
+
* Default router instance that will be used if we don't specify any {@link requestHandler}.
|
|
267
|
+
* See {@link Router.addHandler} and {@link Router.addDefaultHandler.}
|
|
268
|
+
*/
|
|
269
|
+
readonly router: RouterHandler<Context>;
|
|
273
270
|
protected log: Log;
|
|
274
271
|
protected requestHandler: RequestHandler<Context>;
|
|
275
272
|
protected failedRequestHandler?: FailedRequestHandler<ErrorContext>;
|
|
@@ -282,6 +279,7 @@ export declare class BasicCrawler<Context extends CrawlingContext = BasicCrawler
|
|
|
282
279
|
protected crawlingContexts: Map<string, Context>;
|
|
283
280
|
protected autoscaledPoolOptions: AutoscaledPoolOptions;
|
|
284
281
|
protected events: EventManager;
|
|
282
|
+
private _closeEvents?;
|
|
285
283
|
protected static optionsShape: {
|
|
286
284
|
requestList: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
287
285
|
requestQueue: import("ow").ObjectPredicate<object> & import("ow").BasePredicate<object | undefined>;
|
|
@@ -303,12 +301,13 @@ export declare class BasicCrawler<Context extends CrawlingContext = BasicCrawler
|
|
|
303
301
|
/**
|
|
304
302
|
* All `BasicCrawler` parameters are passed via an options object.
|
|
305
303
|
*/
|
|
306
|
-
constructor(options
|
|
304
|
+
constructor(options?: BasicCrawlerOptions<Context, ErrorContext>, config?: Configuration);
|
|
307
305
|
/**
|
|
308
306
|
* Runs the crawler. Returns a promise that gets resolved once all the requests are processed.
|
|
309
307
|
*/
|
|
310
308
|
run(): Promise<FinalStatistics>;
|
|
311
309
|
getRequestQueue(): Promise<RequestQueue>;
|
|
310
|
+
useState<State extends Dictionary = Dictionary>(defaultValue?: State): Promise<State>;
|
|
312
311
|
/**
|
|
313
312
|
* Adds requests to be processed by the crawler
|
|
314
313
|
* @param requests The requests to add
|
|
@@ -326,7 +325,7 @@ export declare class BasicCrawler<Context extends CrawlingContext = BasicCrawler
|
|
|
326
325
|
* Fetches request from either RequestList or RequestQueue. If request comes from a RequestList
|
|
327
326
|
* and RequestQueue is present then enqueues it to the queue first.
|
|
328
327
|
*/
|
|
329
|
-
protected _fetchNextRequest(): Promise<Request | null>;
|
|
328
|
+
protected _fetchNextRequest(): Promise<Request<Dictionary<any>> | null>;
|
|
330
329
|
/**
|
|
331
330
|
* Wrapper around requestHandler that fetches requests from RequestList/RequestQueue
|
|
332
331
|
* then retries them in a case of an error, etc.
|
|
@@ -406,5 +405,30 @@ interface HandlePropertyNameChangeData<New, Old> {
|
|
|
406
405
|
propertyKey: string;
|
|
407
406
|
allowUndefined?: boolean;
|
|
408
407
|
}
|
|
408
|
+
/**
|
|
409
|
+
* Creates new {@link Router} instance that works based on request labels.
|
|
410
|
+
* This instance can then serve as a `requestHandler` of your {@link BasicCrawler}.
|
|
411
|
+
* Defaults to the {@link BasicCrawlingContext}.
|
|
412
|
+
*
|
|
413
|
+
* > Serves as a shortcut for using `Router.create<BasicCrawlingContext>()`.
|
|
414
|
+
*
|
|
415
|
+
* ```ts
|
|
416
|
+
* import { BasicCrawler, createBasicRouter } from 'crawlee';
|
|
417
|
+
*
|
|
418
|
+
* const router = createBasicRouter();
|
|
419
|
+
* router.addHandler('label-a', async (ctx) => {
|
|
420
|
+
* ctx.log.info('...');
|
|
421
|
+
* });
|
|
422
|
+
* router.addDefaultHandler(async (ctx) => {
|
|
423
|
+
* ctx.log.info('...');
|
|
424
|
+
* });
|
|
425
|
+
*
|
|
426
|
+
* const crawler = new BasicCrawler({
|
|
427
|
+
* requestHandler: router,
|
|
428
|
+
* });
|
|
429
|
+
* await crawler.run();
|
|
430
|
+
* ```
|
|
431
|
+
*/
|
|
432
|
+
export declare function createBasicRouter<Context extends BasicCrawlingContext = BasicCrawlingContext>(): RouterHandler<Context>;
|
|
409
433
|
export {};
|
|
410
434
|
//# sourceMappingURL=basic-crawler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-crawler.d.ts","sourceRoot":"","sources":["../../src/internals/basic-crawler.ts"],"names":[],"mappings":"AAAA,
|
|
1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