apify 3.2.0 → 3.2.1
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 +4 -4
- package/actor.d.ts +110 -110
- package/actor.d.ts.map +1 -1
- package/actor.js +90 -89
- package/actor.js.map +1 -1
- package/package.json +3 -2
- package/platform_event_manager.d.ts +8 -8
- package/platform_event_manager.js +9 -9
- package/proxy_configuration.d.ts +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/utils.d.ts +5 -0
- package/utils.d.ts.map +1 -1
- package/utils.js +36 -1
- package/utils.js.map +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://discord.gg/jyEM2PRvMU)
|
|
6
6
|
[](https://github.com/apify/apify-sdk-js/actions/workflows/test-and-release.yaml)
|
|
7
7
|
|
|
8
|
-
Apify SDK provides the tools required to run your own Apify
|
|
8
|
+
Apify SDK provides the tools required to run your own Apify Actors. The crawlers and scraping related tools, previously included in Apify SDK (v2), have been split into a brand-new module - [`crawlee`](https://npmjs.org/crawlee), while keeping the Apify specific parts in this module.
|
|
9
9
|
|
|
10
10
|
> Would you like to work with us on Crawlee, Apify SDK or similar projects? We are hiring [Node.js engineers](https://apify.com/jobs#senior-node.js-engineer).
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ A lot of things have changed since version 2 of the Apify SDK, including the spl
|
|
|
17
17
|
|
|
18
18
|
This short tutorial will set you up to start using Apify SDK in a minute or two.
|
|
19
19
|
If you want to learn more, proceed to the [Apify Platform](https://docs.apify.com/sdk/js/docs/guides/apify-platform)
|
|
20
|
-
guide that will take you step by step through running your
|
|
20
|
+
guide that will take you step by step through running your Actor on Apify's platform.
|
|
21
21
|
|
|
22
22
|
Apify SDK requires [Node.js](https://nodejs.org/en/) 16 or later. Add Apify SDK to any Node.js project by running:
|
|
23
23
|
|
|
@@ -25,9 +25,9 @@ Apify SDK requires [Node.js](https://nodejs.org/en/) 16 or later. Add Apify SDK
|
|
|
25
25
|
npm install apify crawlee playwright
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
> For this example, we'll also install the [`crawlee`](https://npmjs.org/crawlee) module, as it now provides the crawlers that were previously exported by Apify SDK. If you don't plan to use crawlers in your
|
|
28
|
+
> For this example, we'll also install the [`crawlee`](https://npmjs.org/crawlee) module, as it now provides the crawlers that were previously exported by Apify SDK. If you don't plan to use crawlers in your Actors, then you don't need to install it. Keep in mind that neither `playwright` nor `puppeteer` are bundled with `crawlee` in order to reduce install size and allow greater flexibility. That's why we manually install it with NPM. You can choose one, both, or neither.
|
|
29
29
|
|
|
30
|
-
There are two ways to initialize your
|
|
30
|
+
There are two ways to initialize your Actor: by using the `Actor.main()` function you're probably used to, or by calling `Actor.init()` and `Actor.exit()` manually. We prefer explicitly calling `init` and `exit`.
|
|
31
31
|
|
|
32
32
|
### Using `Actor.init()` and `Actor.exit()`
|
|
33
33
|
|