apify 3.0.0-beta.54 → 3.0.0-beta.57

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 CHANGED
@@ -20,7 +20,7 @@ Crawlee simplifies the development of web crawlers, scrapers, data extractors an
20
20
  It provides tools to manage and automatically scale a pool of headless browsers,
21
21
  to maintain queues of URLs to crawl, store crawling results to a local filesystem or into the cloud,
22
22
  rotate proxies and much more.
23
- The SDK is available as the [`crawlee`](https://www.npmjs.com/package/crawlee) NPM package.
23
+ Crawlee is available as the [`crawlee`](https://www.npmjs.com/package/crawlee) NPM package.
24
24
  It can be used either stand-alone in your own applications
25
25
  or in [actors](https://docs.apify.com/actor)
26
26
  running on the [Apify Cloud](https://apify.com/).
@@ -31,92 +31,59 @@ running on the [Apify Cloud](https://apify.com/).
31
31
 
32
32
  ## Motivation
33
33
 
34
- Thanks to tools like [Playwright](https://github.com/microsoft/playwright), [Puppeteer](https://github.com/puppeteer/puppeteer) or
35
- [Cheerio](https://www.npmjs.com/package/cheerio), it is easy to write Node.js code to extract data from web pages. But
36
- eventually things will get complicated. For example, when you try to:
34
+ Thanks to tools like [Playwright](https://github.com/microsoft/playwright), [Puppeteer](https://github.com/puppeteer/puppeteer) or [Cheerio](https://www.npmjs.com/package/cheerio), it is easy to write Node.js code to extract data from web pages. But eventually things will get complicated. For example, when you try to:
37
35
 
38
36
  - Perform a deep crawl of an entire website using a persistent queue of URLs.
39
37
  - Run your scraping code on a list of 100k URLs in a CSV file, without losing any data when your code crashes.
40
38
  - Rotate proxies to hide your browser origin and keep user-like sessions.
41
39
  - Disable browser fingerprinting protections used by websites.
42
40
 
43
- Python has [Scrapy](https://scrapy.org/) for these tasks, but there was no such library for **JavaScript, the language of
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
45
- browser.
41
+ Python has [Scrapy](https://scrapy.org/) for these tasks, but there was no such library for **JavaScript, the language of 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 browser.
46
42
 
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
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
49
- commonalities.
43
+ 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 reinvent the wheel every time you need data from the web, and focus on writing code specific to the target website, rather than developing commonalities.
50
44
 
51
45
  ## Overview
52
46
 
53
47
  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
48
 
55
- [//]: # (TODO add links to the docs about `@crawlee/` packages and the `crawlee` metapackage)
49
+ - [`CheerioCrawler`](https://apify.github.io/apify-ts/api/cheerio-crawler/class/CheerioCrawler) - Enables the parallel crawling of a large number of web pages using the [cheerio](https://www.npmjs.com/package/cheerio) HTML parser. This is the most efficient web crawler, but it does not work on websites that require JavaScript. Available also under `@crawlee/cheerio` package.
56
50
 
57
- - [`CheerioCrawler`](https://apify.github.io/apify-ts/api/cheerio-crawler/class/CheerioCrawler) - Enables the parallel crawling of a large
58
- number of web pages using the [cheerio](https://www.npmjs.com/package/cheerio) HTML parser. This is the most
59
- efficient web crawler, but it does not work on websites that require JavaScript.
51
+ - [`PuppeteerCrawler`](https://apify.github.io/apify-ts/api/puppeteer-crawler/class/PuppeteerCrawler) - Enables the parallel crawling of a large number of web pages using the headless Chrome browser and [Puppeteer](https://github.com/puppeteer/puppeteer). The pool of Chrome browsers is automatically scaled up and down based on available system resources. Available also under `@crawlee/puppeteer` package.
60
52
 
61
- - [`PuppeteerCrawler`](https://apify.github.io/apify-ts/api/puppeteer-crawler/class/PuppeteerCrawler) - Enables the parallel crawling of
62
- a large number of web pages using the headless Chrome browser and [Puppeteer](https://github.com/puppeteer/puppeteer).
63
- The pool of Chrome browsers is automatically scaled up and down based on available system resources.
53
+ - [`PlaywrightCrawler`](https://apify.github.io/apify-ts/api/playwright-crawler/class/PlaywrightCrawler) - Unlike `PuppeteerCrawler` you can use [Playwright](https://github.com/microsoft/playwright) to manage almost any headless browser. It also provides a cleaner and more mature interface while keeping the ease of use and advanced features. Available also under `@crawlee/playwright` package.
64
54
 
65
- - [`PlaywrightCrawler`](https://apify.github.io/apify-ts/api/playwright-crawler/class/PlaywrightCrawler) - Unlike `PuppeteerCrawler`
66
- you can use [Playwright](https://github.com/microsoft/playwright) to manage almost any headless browser.
67
- It also provides a cleaner and more mature interface while keeping the ease of use and advanced features.
55
+ - [`BasicCrawler`](https://apify.github.io/apify-ts/api/basic-crawler/class/BasicCrawler) - Provides a simple framework for the parallel crawling of web pages whose URLs are fed either from a static list or from a dynamic queue of URLs. This class serves as a base for the more specialized crawlers above. Available also under `@crawlee/basic` package.
68
56
 
69
- - [`BasicCrawler`](https://apify.github.io/apify-ts/api/basic-crawler/class/BasicCrawler) - Provides a simple framework for the parallel
70
- crawling of web pages whose URLs are fed either from a static list or from a dynamic queue of URLs. This class
71
- serves as a base for the more specialized crawlers above.
57
+ - [`RequestList`](https://apify.github.io/apify-ts/api/core/class/RequestList) - Represents a list of URLs to crawl. The URLs can be passed in code or in a text file hosted on the web. The list persists its state so that crawling can resume when the Node.js process restarts. Available also under `@crawlee/core` package.
72
58
 
73
- - [`RequestList`](https://apify.github.io/apify-ts/api/core/class/RequestList) - Represents a list of URLs to crawl.
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
75
- can resume when the Node.js process restarts.
59
+ - [`RequestQueue`](https://apify.github.io/apify-ts/api/core/class/RequestQueue) - Represents a queue of URLs to crawl, which is stored either in memory, on a local filesystem, or in the [Apify Cloud](https://apify.com). The queue is used for deep crawling of websites, where you start with several URLs and then recursively follow links to other pages. The data structure supports both breadth-first and depth-first crawling orders. Available also under `@crawlee/core` package.
76
60
 
77
- - [`RequestQueue`](https://apify.github.io/apify-ts/api/core/class/RequestQueue) - Represents a queue of URLs to crawl,
78
- which is stored either on a local filesystem or in the [Apify Cloud](https://apify.com). The queue is used
79
- for deep crawling of websites, where you start with several URLs and then recursively follow links to other pages.
80
- The data structure supports both breadth-first and depth-first crawling orders.
61
+ - [`Dataset`](https://apify.github.io/apify-ts/api/core/class/Dataset) - Provides a store for structured data and enables their export to formats like JSON, JSONL, CSV, XML, Excel or HTML. The data is stored on a local filesystem or in the Apify Cloud. Datasets are useful for storing and sharing large tabular crawling results, such as a list of products or real estate offers. Available also under `@crawlee/core` package.
81
62
 
82
- - [`Dataset`](https://apify.github.io/apify-ts/api/core/class/Dataset) - Provides a store for structured data and enables their export
83
- to formats like JSON, JSONL, CSV, XML, Excel or HTML. The data is stored on a local filesystem or in the Apify Cloud.
84
- Datasets are useful for storing and sharing large tabular crawling results, such as a list of products or real estate offers.
63
+ - [`KeyValueStore`](https://apify.github.io/apify-ts/api/core/class/KeyValueStore) - A simple key-value store for arbitrary data records or files, along with their MIME content type. It is ideal for saving screenshots of web pages, PDFs or to persist the state of your crawlers. The data is stored on a local filesystem or in the Apify Cloud. Available also under `@crawlee/core` package.
85
64
 
86
- - [`KeyValueStore`](https://apify.github.io/apify-ts/api/core/class/KeyValueStore) - A simple key-value store for arbitrary data
87
- records or files, along with their MIME content type. It is ideal for saving screenshots of web pages, PDFs
88
- or to persist the state of your crawlers. The data is stored on a local filesystem or in the Apify Cloud.
65
+ - [`AutoscaledPool`](https://apify.github.io/apify-ts/api/core/class/AutoscaledPool) - Runs asynchronous background tasks, while automatically adjusting the concurrency based on free system memory and CPU usage. This is useful for running web scraping tasks at the maximum capacity of the system. Available also under `@crawlee/core` package.
89
66
 
90
- - [`AutoscaledPool`](https://apify.github.io/apify-ts/api/core/class/AutoscaledPool) - Runs asynchronous background tasks,
91
- while automatically adjusting the concurrency based on free system memory and CPU usage. This is useful for running
92
- web scraping tasks at the maximum capacity of the system.
93
-
94
- Additionally, the package provides various helper functions to simplify running your code on the Apify Cloud and thus
95
- take advantage of its pool of proxies, job scheduler, data storage, etc.
96
- For more information, see the [Crawlee Programmer's Reference](https://apify.github.io/apify-ts/).
67
+ Additionally, the package provides various helper functions to simplify running your code on the Apify Cloud and thus take advantage of its pool of proxies, job scheduler, data storage, etc. For more information, see the [Crawlee Programmer's Reference](https://apify.github.io/apify-ts/).
97
68
 
98
69
  ## Quick Start
99
70
 
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)
102
- tutorial that will take you step by step through creating your first scraper.
71
+ This short tutorial will set you up to start using Crawlee in a minute or two. If you want to learn more, proceed to the [Getting Started](https://apify.github.io/apify-ts/docs/guides/getting-started) tutorial that will take you step by step through creating your first scraper.
103
72
 
104
73
  ### Local stand-alone usage
105
74
 
106
- Crawlee requires [Node.js](https://nodejs.org/en/) 16 or later.
107
- Add Crawlee to any Node.js project by running:
75
+ Crawlee requires [Node.js](https://nodejs.org/en/) 16 or later. Add Crawlee to any Node.js project by running:
108
76
 
109
77
  ```bash
110
- npm install @crawlee/playwright playwright
78
+ npm install crawlee playwright
111
79
  ```
112
80
 
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.
81
+ > Neither `playwright` nor `puppeteer` are bundled with Crawlee to reduce install size and allow greater flexibility. That's why we install it with NPM. You can choose one, both, or neither.
114
82
 
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).
83
+ Run the following example to perform a recursive crawl of a website using Playwright. For more examples showcasing various features of Crawlee, [see the Examples section of the documentation](https://apify.github.io/apify-ts/docs/examples/crawl-multiple-urls).
117
84
 
118
85
  ```javascript
119
- import { PlaywrightCrawler } from '@crawlee/playwright';
86
+ import { PlaywrightCrawler } from 'crawlee';
120
87
 
121
88
  const crawler = new PlaywrightCrawler({
122
89
  async requestHandler({ request, page, enqueueLinks }) {
@@ -140,40 +107,38 @@ When you run the example, you should see Crawlee automating a Chrome browser.
140
107
 
141
108
  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).
142
109
 
143
- ### Local usage with Apify command-line interface (CLI)
110
+ ### Local usage with Crawlee command-line interface (CLI)
144
111
 
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
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.
112
+ To create a boilerplate of your project we can use the [Crawlee command-line interface (CLI)](https://github.com/apify/apify-cli) tool.
147
113
 
148
- Install the CLI by running:
114
+ Let's create a boilerplate of your new web crawling project by running:
149
115
 
150
116
  ```bash
151
- npm -g install apify-cli
117
+ npx crawlee create my-hello-world
152
118
  ```
153
119
 
154
- Now create a boilerplate of your new web crawling project by running:
120
+ The CLI will prompt you to select a project boilerplate template - just pick "Hello world". The tool will create a directory called `my-hello-world` with a Node.js project files. You can run the project as follows:
155
121
 
156
122
  ```bash
157
- apify create my-hello-world
123
+ cd my-hello-world
124
+ npx crawlee run
158
125
  ```
159
126
 
160
- The CLI will prompt you to select a project boilerplate template - just pick "Hello world". The tool will create a directory called `my-hello-world`
161
- with a Node.js project files. You can run the project as follows:
127
+ 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 be in the default key-value store in `./crawlee_storage/key_value_stores/default/INPUT.json`.
162
128
 
163
- ```bash
164
- cd my-hello-world
165
- apify run
166
- ```
129
+ ### Usage on the Apify platform
167
130
 
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`.
131
+ Now if we want to run our new crawler on Apify Platform, we first need to download the `apify-cli` and login with our token:
170
132
 
171
- Now you can easily deploy your code to the Apify platform by running:
133
+ > We could also use the Apify CLI to generate a new project, which can be better suited if we want to run it on the Apify Platform.
172
134
 
173
135
  ```bash
136
+ npm i -g apify-cli
174
137
  apify login
175
138
  ```
176
139
 
140
+ Finally, we can easily deploy our code to the Apify platform by running:
141
+
177
142
  ```bash
178
143
  apify push
179
144
  ```
@@ -181,32 +146,18 @@ apify push
181
146
  Your script will be uploaded to the Apify platform and built there so that it can be run. For more information, view the
182
147
  [Apify Actor](https://docs.apify.com/cli) documentation.
183
148
 
184
- ### Usage on the Apify platform
185
-
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).
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>
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.
149
+ 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). 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> and then go to the <i>Source</i> tab and start writing your code or paste one of the examples from the Examples section.
189
150
 
190
151
  For more information, view the [Apify actors quick start guide](https://docs.apify.com/actor/quick-start).
191
152
 
192
153
  ## Support
193
154
 
194
- If you find any bug or issue with Crawlee, please [submit an issue on GitHub](https://github.com/apify/apify-js/issues).
195
- For questions, you can ask on [Stack Overflow](https://stackoverflow.com/questions/tagged/apify) or contact support@apify.com
155
+ If you find any bug or issue with Crawlee, please [submit an issue on GitHub](https://github.com/apify/apify-ts/issues). For questions, you can ask on [Stack Overflow](https://stackoverflow.com/questions/tagged/apify) or contact support@apify.com
196
156
 
197
157
  ## Contributing
198
158
 
199
- Your code contributions are welcome and you'll be praised to eternity!
200
- If you have any ideas for improvements, either submit an issue or create a pull request.
201
- For contribution guidelines and the code of conduct,
202
- see [CONTRIBUTING.md](https://github.com/apify/apify-js/blob/master/CONTRIBUTING.md).
159
+ Your code contributions are welcome, and you'll be praised to eternity! If you have any ideas for improvements, either submit an issue or create a pull request. For contribution guidelines and the code of conduct, see [CONTRIBUTING.md](https://github.com/apify/apify-ts/blob/master/CONTRIBUTING.md).
203
160
 
204
161
  ## License
205
162
 
206
- This project is licensed under the Apache License 2.0 -
207
- see the [LICENSE.md](https://github.com/apify/apify-js/blob/master/LICENSE.md) file for details.
208
-
209
- ## Acknowledgments
210
-
211
- Many thanks to [Chema Balsas](https://www.npmjs.com/~jbalsas) for giving up the `apify` package name
212
- on NPM and renaming his project to [jsdocify](https://www.npmjs.com/package/jsdocify).
163
+ This project is licensed under the Apache License 2.0 - see the [LICENSE.md](https://github.com/apify/apify-ts/blob/master/LICENSE.md) file for details.
package/actor.d.ts CHANGED
@@ -2,11 +2,12 @@
2
2
  import type { ActorStartOptions, ApifyClientOptions, RunAbortOptions, TaskStartOptions, Webhook, WebhookEventType } from 'apify-client';
3
3
  import { ActorRun as ClientActorRun, ApifyClient } from 'apify-client';
4
4
  import type { ConfigurationOptions, EventManager, EventTypeName, RecordOptions } from '@crawlee/core';
5
- import { Configuration, Dataset, RequestQueue } from '@crawlee/core';
5
+ import { Dataset, RequestQueue } from '@crawlee/core';
6
6
  import type { Awaitable, Dictionary, StorageClient } from '@crawlee/types';
7
7
  import type { ProxyConfigurationOptions } from './proxy_configuration';
8
8
  import { ProxyConfiguration } from './proxy_configuration';
9
9
  import { KeyValueStore } from './key_value_store';
10
+ import { Configuration } from './configuration';
10
11
  /**
11
12
  * `Apify` class serves as an alternative approach to the static helpers exported from the package. It allows to pass configuration
12
13
  * that will be used on the instance methods. Environment variables will have precedence over this configuration.
package/actor.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../src/actor.ts"],"names":[],"mappings":";AAIA,OAAO,KAAK,EACR,iBAAiB,EACjB,kBAAkB,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,MAAM,WAAW,WAAW;IACxB,qCAAqC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,UAAU;;;;CAItB,CAAC"}
package/actor.js CHANGED
@@ -13,6 +13,7 @@ const utils_2 = require("./utils");
13
13
  const platform_event_manager_1 = require("./platform_event_manager");
14
14
  const proxy_configuration_1 = require("./proxy_configuration");
15
15
  const key_value_store_1 = require("./key_value_store");
16
+ const configuration_1 = require("./configuration");
16
17
  /**
17
18
  * `Apify` class serves as an alternative approach to the static helpers exported from the package. It allows to pass configuration
18
19
  * that will be used on the instance methods. Environment variables will have precedence over this configuration.
@@ -51,7 +52,7 @@ class Actor {
51
52
  value: void 0
52
53
  });
53
54
  // use default configuration object if nothing overridden (it fallbacks to env vars)
54
- this.config = Object.keys(options).length === 0 ? core_1.Configuration.getGlobalConfig() : new core_1.Configuration(options);
55
+ this.config = Object.keys(options).length === 0 ? configuration_1.Configuration.getGlobalConfig() : new configuration_1.Configuration(options);
55
56
  this.apifyClient = this.newClient();
56
57
  this.eventManager = new platform_event_manager_1.PlatformEventManager(this.config);
57
58
  }
@@ -128,7 +129,7 @@ class Actor {
128
129
  await this.init(options);
129
130
  let ret;
130
131
  try {
131
- ret = await core_1.Configuration.storage.run(this.config, userFunc);
132
+ ret = await userFunc();
132
133
  await this.exit(options);
133
134
  }
134
135
  catch (err) {
@@ -144,18 +145,20 @@ class Actor {
144
145
  async init(options = {}) {
145
146
  (0, utils_2.logSystemInfo)();
146
147
  (0, utils_2.printOutdatedSdkWarning)();
148
+ // reset global config instance to respect APIFY_ prefixed env vars
149
+ core_1.Configuration.globalConfig = configuration_1.Configuration.getGlobalConfig();
147
150
  await this.eventManager.init();
148
151
  if (this.isAtHome()) {
149
152
  this.config.set('availableMemoryRatio', 1);
153
+ this.config.set('disableBrowserSandbox', true); // for browser launcher, adds `--no-sandbox` to args
150
154
  this.config.useStorageClient(this.apifyClient);
151
155
  this.config.useEventManager(this.eventManager);
152
- // for browser launcher, adds `--no-sandbox` to args
153
- process.env.CRAWLEE_DISABLE_BROWSER_SANDBOX = '1';
154
156
  }
155
157
  else if (options.storage) {
156
158
  this.config.useStorageClient(options.storage);
157
159
  }
158
160
  await (0, core_1.purgeDefaultStorages)(this.config);
161
+ configuration_1.Configuration.storage.enterWith(this.config);
159
162
  }
160
163
  /**
161
164
  * @ignore
@@ -701,8 +704,8 @@ class Actor {
701
704
  newClient(options = {}) {
702
705
  const { storageDir, ...storageClientOptions } = this.config.get('storageClientOptions');
703
706
  return new apify_client_1.ApifyClient({
704
- baseUrl: process.env[consts_1.ENV_VARS.API_BASE_URL] ?? 'https://api.apify.com',
705
- token: process.env[consts_1.ENV_VARS.TOKEN],
707
+ baseUrl: this.config.get('apiBaseUrl'),
708
+ token: this.config.get('token'),
706
709
  ...storageClientOptions,
707
710
  ...options, // allow overriding the instance configuration
708
711
  });
package/actor.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"actor.js","sourceRoot":"","sources":["../src/actor.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AACpB,0CAA2D;AAC3D,4CAAqD;AACrD,6DAA6B;AAS7B,+CAGsB;AAQtB,wCAOuB;AAEvB,0CAA6D;AAC7D,mCAAiE;AACjE,qEAAgE;AAEhE,+DAA2D;AAC3D,uDAAkD;AAElD;;;;GAIG;AACH,MAAa,KAAK;IAsBd,YAAY,UAAgC,EAAE;QAlB9C;;;WAGG;QACH;;;;;WAA+B;QAE/B;;;WAGG;QACH;;;;;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AyB,EAAE,EAAE;IAC7B,aAAa,EAAE,EAAE;CACpB,CAAC"}
@@ -0,0 +1,160 @@
1
+ import { Configuration as CoreConfiguration } from '@crawlee/core';
2
+ import type { ConfigurationOptions as CoreConfigurationOptions } from '@crawlee/core';
3
+ export interface ConfigurationOptions extends CoreConfigurationOptions {
4
+ metamorphAfterSleepMillis?: number;
5
+ actorEventsWsUrl?: string;
6
+ token?: string;
7
+ actorId?: string;
8
+ actorRunId?: string;
9
+ actorTaskId?: string;
10
+ apiBaseUrl?: string;
11
+ containerPort?: number;
12
+ containerUrl?: string;
13
+ proxyHostname?: string;
14
+ proxyPassword?: string;
15
+ proxyPort?: number;
16
+ proxyStatusUrl?: string;
17
+ isAtHome?: boolean;
18
+ userId?: string;
19
+ }
20
+ /**
21
+ * `Configuration` is a value object holding the SDK configuration. We can use it in two ways:
22
+ *
23
+ * 1. When using `Actor` class, we can get the instance configuration via `sdk.config`
24
+ * ```js
25
+ * import { Actor } from 'apify';
26
+ *
27
+ * const sdk = new Actor({ token: '123' });
28
+ * console.log(sdk.config.get('token')); // '123'
29
+ * const crawler = new BasicCrawler({ ... }, config);
30
+ * ```
31
+ * 2. To get the global configuration (singleton instance). It will respect the environment variables.
32
+ * ```js
33
+ * import { BasicCrawler, Configuration } from 'crawlee';
34
+ *
35
+ * const config = new Configuration({ persistStateIntervalMillis: 30_000 });
36
+ * const crawler = new BasicCrawler({ ... }, config);
37
+ * ```
38
+ *
39
+ * ## Supported Configuration Options
40
+ *
41
+ * Key | Environment Variable | Default Value
42
+ * ---|---|---
43
+ * `memoryMbytes` | `APIFY_MEMORY_MBYTES` | -
44
+ * `headless` | `APIFY_HEADLESS` | -
45
+ * `persistStateIntervalMillis` | `APIFY_PERSIST_STATE_INTERVAL_MILLIS` | `60e3`
46
+ * `token` | `APIFY_TOKEN` | -
47
+ * `isAtHome` | `APIFY_IS_AT_HOME` | -
48
+ * `defaultDatasetId` | `APIFY_DEFAULT_DATASET_ID` | `'default'`
49
+ * `defaultKeyValueStoreId` | `APIFY_DEFAULT_KEY_VALUE_STORE_ID` | `'default'`
50
+ * `defaultRequestQueueId` | `APIFY_DEFAULT_REQUEST_QUEUE_ID` | `'default'`
51
+ *
52
+ * ## Advanced Configuration Options
53
+ *
54
+ * Key | Environment Variable | Default Value
55
+ * ---|---|---
56
+ * `actorEventsWsUrl` | `APIFY_ACTOR_EVENTS_WS_URL` | -
57
+ * `actorId` | `APIFY_ACTOR_ID` | -
58
+ * `actorRunId` | `APIFY_ACTOR_RUN_ID` | -
59
+ * `actorTaskId` | `APIFY_ACTOR_TASK_ID` | -
60
+ * `apiBaseUrl` | `APIFY_API_BASE_URL` | `'https://api.apify.com'`
61
+ * `containerPort` | `APIFY_CONTAINER_PORT` | `4321`
62
+ * `containerUrl` | `APIFY_CONTAINER_URL` | `'http://localhost:4321'`
63
+ * `inputKey` | `APIFY_INPUT_KEY` | `'INPUT'`
64
+ * `metamorphAfterSleepMillis` | `APIFY_METAMORPH_AFTER_SLEEP_MILLIS` | `300e3`
65
+ * `proxyHostname` | `APIFY_PROXY_HOSTNAME` | `'proxy.apify.com'`
66
+ * `proxyPassword` | `APIFY_PROXY_PASSWORD` | -
67
+ * `proxyPort` | `APIFY_PROXY_PORT` | `8000`
68
+ * `proxyStatusUrl` | `APIFY_PROXY_STATUS_URL` | `'http://proxy.apify.com'`
69
+ * `userId` | `APIFY_USER_ID` | -
70
+ * `xvfb` | `APIFY_XVFB` | -
71
+ * `chromeExecutablePath` | `APIFY_CHROME_EXECUTABLE_PATH` | -
72
+ * `defaultBrowserPath` | `APIFY_DEFAULT_BROWSER_PATH` | -
73
+ */
74
+ export declare class Configuration extends CoreConfiguration {
75
+ /** @inheritDoc */
76
+ static globalConfig?: Configuration;
77
+ protected static ENV_MAP: {
78
+ APIFY_AVAILABLE_MEMORY_RATIO: string;
79
+ APIFY_PURGE_ON_START: string;
80
+ APIFY_MEMORY_MBYTES: string;
81
+ APIFY_DEFAULT_DATASET_ID: string;
82
+ APIFY_DEFAULT_KEY_VALUE_STORE_ID: string;
83
+ APIFY_DEFAULT_REQUEST_QUEUE_ID: string;
84
+ APIFY_INPUT_KEY: string;
85
+ APIFY_PERSIST_STATE_INTERVAL_MILLIS: string;
86
+ APIFY_HEADLESS: string;
87
+ APIFY_XVFB: string;
88
+ APIFY_CHROME_EXECUTABLE_PATH: string;
89
+ APIFY_DEFAULT_BROWSER_PATH: string;
90
+ APIFY_DISABLE_BROWSER_SANDBOX: string;
91
+ APIFY_TOKEN: string;
92
+ APIFY_METAMORPH_AFTER_SLEEP_MILLIS: string;
93
+ APIFY_TEST_PERSIST_INTERVAL_MILLIS: string;
94
+ APIFY_ACTOR_EVENTS_WS_URL: string;
95
+ APIFY_ACTOR_ID: string;
96
+ APIFY_API_BASE_URL: string;
97
+ APIFY_IS_AT_HOME: string;
98
+ APIFY_ACTOR_RUN_ID: string;
99
+ APIFY_ACTOR_TASK_ID: string;
100
+ APIFY_CONTAINER_PORT: string;
101
+ APIFY_CONTAINER_URL: string;
102
+ APIFY_USER_ID: string;
103
+ APIFY_PROXY_HOSTNAME: string;
104
+ APIFY_PROXY_PASSWORD: string;
105
+ APIFY_PROXY_STATUS_URL: string;
106
+ APIFY_PROXY_PORT: string;
107
+ CRAWLEE_AVAILABLE_MEMORY_RATIO: string;
108
+ CRAWLEE_PURGE_ON_START: string;
109
+ CRAWLEE_MEMORY_MBYTES: string;
110
+ CRAWLEE_DEFAULT_DATASET_ID: string;
111
+ CRAWLEE_DEFAULT_KEY_VALUE_STORE_ID: string;
112
+ CRAWLEE_DEFAULT_REQUEST_QUEUE_ID: string;
113
+ CRAWLEE_INPUT_KEY: string;
114
+ CRAWLEE_PERSIST_STATE_INTERVAL_MILLIS: string;
115
+ CRAWLEE_HEADLESS: string;
116
+ CRAWLEE_XVFB: string;
117
+ CRAWLEE_CHROME_EXECUTABLE_PATH: string;
118
+ CRAWLEE_DEFAULT_BROWSER_PATH: string;
119
+ CRAWLEE_DISABLE_BROWSER_SANDBOX: string;
120
+ };
121
+ protected static INTEGER_VARS: string[];
122
+ protected static BOOLEAN_VARS: string[];
123
+ protected static DEFAULTS: {
124
+ defaultKeyValueStoreId: string;
125
+ defaultDatasetId: string;
126
+ defaultRequestQueueId: string;
127
+ inputKey: string;
128
+ apiBaseUrl: string;
129
+ proxyStatusUrl: string;
130
+ proxyHostname: string;
131
+ proxyPort: number;
132
+ containerPort: number;
133
+ containerUrl: string;
134
+ metamorphAfterSleepMillis: number;
135
+ persistStateIntervalMillis: number;
136
+ maxUsedCpuRatio: number;
137
+ availableMemoryRatio: number;
138
+ storageClientOptions: {};
139
+ purgeOnStart: boolean;
140
+ systemInfoIntervalMillis: number;
141
+ };
142
+ /**
143
+ * @inheritDoc
144
+ */
145
+ get<T extends keyof ConfigurationOptions, U extends ConfigurationOptions[T]>(key: T, defaultValue?: U): U;
146
+ /**
147
+ * @inheritDoc
148
+ */
149
+ set(key: keyof ConfigurationOptions, value?: any): void;
150
+ /**
151
+ * @inheritDoc
152
+ */
153
+ static getGlobalConfig(): Configuration;
154
+ /**
155
+ * Resets global configuration instance. The default instance holds configuration based on env vars,
156
+ * if we want to change them, we need to first reset the global state. Used mainly for testing purposes.
157
+ */
158
+ static resetGlobalState(): void;
159
+ }
160
+ //# sourceMappingURL=configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../src/configuration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,IAAI,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAEtF,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB;IAClE,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CA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