apify 3.1.13 → 3.1.15-beta.17
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/.turbo/turbo-build.log +20 -0
- package/.turbo/turbo-copy.log +4 -0
- package/dist/LICENSE.md +201 -0
- package/dist/README.md +98 -0
- package/{actor.d.ts → dist/actor.d.ts} +68 -5
- package/dist/actor.d.ts.map +1 -0
- package/{actor.js → dist/actor.js} +18 -16
- package/dist/actor.js.map +1 -0
- package/{configuration.js → dist/configuration.js} +1 -1
- package/dist/configuration.js.map +1 -0
- package/dist/package.json +79 -0
- package/{platform_event_manager.d.ts.map → dist/platform_event_manager.d.ts.map} +1 -1
- package/{platform_event_manager.js → dist/platform_event_manager.js} +2 -2
- package/dist/platform_event_manager.js.map +1 -0
- package/{proxy_configuration.d.ts → dist/proxy_configuration.d.ts} +2 -7
- package/{proxy_configuration.d.ts.map → dist/proxy_configuration.d.ts.map} +1 -1
- package/{proxy_configuration.js → dist/proxy_configuration.js} +43 -21
- package/dist/proxy_configuration.js.map +1 -0
- package/dist/utils.d.ts.map +1 -0
- package/{utils.js → dist/utils.js} +6 -6
- package/{utils.js.map → dist/utils.js.map} +1 -1
- package/package.json +21 -22
- package/actor.d.ts.map +0 -1
- package/actor.js.map +0 -1
- package/configuration.js.map +0 -1
- package/platform_event_manager.js.map +0 -1
- package/proxy_configuration.js.map +0 -1
- package/tsconfig.build.tsbuildinfo +0 -1
- package/utils.d.ts.map +0 -1
- /package/{configuration.d.ts → dist/configuration.d.ts} +0 -0
- /package/{configuration.d.ts.map → dist/configuration.d.ts.map} +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.d.ts.map → dist/index.d.ts.map} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{index.js.map → dist/index.js.map} +0 -0
- /package/{index.mjs → dist/index.mjs} +0 -0
- /package/{key_value_store.d.ts → dist/key_value_store.d.ts} +0 -0
- /package/{key_value_store.d.ts.map → dist/key_value_store.d.ts.map} +0 -0
- /package/{key_value_store.js → dist/key_value_store.js} +0 -0
- /package/{key_value_store.js.map → dist/key_value_store.js.map} +0 -0
- /package/{platform_event_manager.d.ts → dist/platform_event_manager.d.ts} +0 -0
- /package/{utils.d.ts → dist/utils.d.ts} +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
> apify@3.1.14 build
|
|
3
|
+
> npm run clean && npm run compile && npm run copy && npm run fixApifyExport
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
> apify@3.1.14 clean
|
|
7
|
+
> rimraf ./dist
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
> apify@3.1.14 compile
|
|
11
|
+
> tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
> apify@3.1.14 copy
|
|
15
|
+
> tsx ../../scripts/copy.ts --readme=local
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
> apify@3.1.14 fixApifyExport
|
|
19
|
+
> tsx ../../scripts/temp_fix_apify_exports.ts
|
|
20
|
+
|
package/dist/LICENSE.md
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2018 Apify Technologies s.r.o.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/dist/README.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# Apify SDK
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/apify)
|
|
4
|
+
[](https://www.npmjs.com/package/apify)
|
|
5
|
+
[](https://discord.gg/jyEM2PRvMU)
|
|
6
|
+
[](https://github.com/apify/apify-sdk-js/actions/workflows/test-and-release.yaml)
|
|
7
|
+
|
|
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
|
+
|
|
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
|
+
|
|
12
|
+
## Upgrading from v2
|
|
13
|
+
|
|
14
|
+
A lot of things have changed since version 2 of the Apify SDK, including the split of the crawlers to the new [`crawlee`](https://npmjs.org/crawlee) module. We've written a guide to help you easily migrate from v2 to v3. Visit the [Upgrading Guide](https://sdk.apify.com/docs/upgrading/upgrading-to-v3) to find out what changes you need to make (especially the section related to this very [Apify SDK](https://sdk.apify.com/docs/upgrading/upgrading-to-v3#apify-sdk)), and, if you encounter any issues, join our [Discord server](https://discord.gg/jyEM2PRvMU) for help!
|
|
15
|
+
|
|
16
|
+
## Quick Start
|
|
17
|
+
|
|
18
|
+
This short tutorial will set you up to start using Apify SDK in a minute or two.
|
|
19
|
+
If you want to learn more, proceed to the [Apify Platform](https://sdk.apify.com/docs/guides/apify-platform)
|
|
20
|
+
guide that will take you step by step through running your actor on Apify's platform.
|
|
21
|
+
|
|
22
|
+
Apify SDK requires [Node.js](https://nodejs.org/en/) 16 or later. Add Apify SDK to any Node.js project by running:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install apify crawlee playwright
|
|
26
|
+
```
|
|
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 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
|
+
|
|
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
|
+
|
|
32
|
+
### Using `Actor.init()` and `Actor.exit()`
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
import { Actor } from 'apify';
|
|
36
|
+
import { PlaywrightCrawler } from 'crawlee';
|
|
37
|
+
|
|
38
|
+
await Actor.init()
|
|
39
|
+
|
|
40
|
+
const crawler = new PlaywrightCrawler({
|
|
41
|
+
async requestHandler({ request, page, enqueueLinks }) {
|
|
42
|
+
// Extract HTML title of the page.
|
|
43
|
+
const title = await page.title();
|
|
44
|
+
console.log(`Title of ${request.url}: ${title}`);
|
|
45
|
+
|
|
46
|
+
// Add URLs that point to the same hostname.
|
|
47
|
+
await enqueueLinks();
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
await crawler.run(['https://crawlee.dev/']);
|
|
52
|
+
|
|
53
|
+
await Actor.exit();
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Using `Actor.main()`
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { Actor } from 'apify';
|
|
60
|
+
import { PlaywrightCrawler } from 'crawlee';
|
|
61
|
+
|
|
62
|
+
await Actor.main(async () => {
|
|
63
|
+
const crawler = new PlaywrightCrawler({
|
|
64
|
+
async requestHandler({ request, page, enqueueLinks }) {
|
|
65
|
+
// Extract HTML title of the page.
|
|
66
|
+
const title = await page.title();
|
|
67
|
+
console.log(`Title of ${request.url}: ${title}`);
|
|
68
|
+
|
|
69
|
+
// Add URLs that point to the same hostname.
|
|
70
|
+
await enqueueLinks();
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
await crawler.run(['https://crawlee.dev/']);
|
|
75
|
+
});
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Support
|
|
79
|
+
|
|
80
|
+
If you find any bug or issue with the Apify SDK, please [submit an issue on GitHub](https://github.com/apify/apify-sdk-js/issues).
|
|
81
|
+
For questions, you can ask on [Stack Overflow](https://stackoverflow.com/questions/tagged/apify) or contact support@apify.com
|
|
82
|
+
|
|
83
|
+
## Contributing
|
|
84
|
+
|
|
85
|
+
Your code contributions are welcome, and you'll be praised to eternity!
|
|
86
|
+
If you have any ideas for improvements, either submit an issue or create a pull request.
|
|
87
|
+
For contribution guidelines and the code of conduct,
|
|
88
|
+
see [CONTRIBUTING.md](https://github.com/apify/apify-sdk-js/blob/master/CONTRIBUTING.md).
|
|
89
|
+
|
|
90
|
+
## License
|
|
91
|
+
|
|
92
|
+
This project is licensed under the Apache License 2.0 -
|
|
93
|
+
see the [LICENSE.md](https://github.com/apify/apify-sdk-js/blob/master/LICENSE.md) file for details.
|
|
94
|
+
|
|
95
|
+
## Acknowledgments
|
|
96
|
+
|
|
97
|
+
Many thanks to [Chema Balsas](https://www.npmjs.com/~jbalsas) for giving up the `apify` package name
|
|
98
|
+
on NPM and renaming his project to [jsdocify](https://www.npmjs.com/package/jsdocify).
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import type { ActorCallOptions, ApifyClientOptions, RunAbortOptions, TaskCallOptions, Webhook, WebhookEventType } from 'apify-client';
|
|
3
|
-
import { ActorRun as ClientActorRun, ApifyClient } from 'apify-client';
|
|
4
2
|
import type { ConfigurationOptions, EventManager, EventTypeName, RecordOptions, UseStateOptions } from '@crawlee/core';
|
|
5
3
|
import { Dataset, RequestQueue } from '@crawlee/core';
|
|
6
4
|
import type { Awaitable, Dictionary, SetStatusMessageOptions, StorageClient } from '@crawlee/types';
|
|
5
|
+
import type { ActorCallOptions, ApifyClientOptions, RunAbortOptions, TaskCallOptions, Webhook, WebhookEventType } from 'apify-client';
|
|
6
|
+
import { ActorRun as ClientActorRun, ApifyClient } from 'apify-client';
|
|
7
|
+
import { Configuration } from './configuration';
|
|
8
|
+
import { KeyValueStore } from './key_value_store';
|
|
7
9
|
import type { ProxyConfigurationOptions } from './proxy_configuration';
|
|
8
10
|
import { ProxyConfiguration } from './proxy_configuration';
|
|
9
|
-
import { KeyValueStore } from './key_value_store';
|
|
10
|
-
import { Configuration } from './configuration';
|
|
11
11
|
/**
|
|
12
12
|
* `Actor` class serves as an alternative approach to the static helpers exported from the package. It allows to pass configuration
|
|
13
13
|
* that will be used on the instance methods. Environment variables will have precedence over this configuration.
|
|
@@ -985,9 +985,13 @@ export interface ApifyEnv {
|
|
|
985
985
|
* ID of the actor task (ACTOR_TASK_ID)
|
|
986
986
|
*/
|
|
987
987
|
actorTaskId: string | null;
|
|
988
|
+
/**
|
|
989
|
+
* ID of the Actor build used in the run. (ACTOR_BUILD_ID)
|
|
990
|
+
*/
|
|
991
|
+
actorBuildId: string | null;
|
|
988
992
|
/**
|
|
989
993
|
* ID of the user who started the actor - note that it might be
|
|
990
|
-
* different than the owner
|
|
994
|
+
* different than the owner of the actor (APIFY_USER_ID)
|
|
991
995
|
*/
|
|
992
996
|
userId: string | null;
|
|
993
997
|
/**
|
|
@@ -1018,6 +1022,65 @@ export interface ApifyEnv {
|
|
|
1018
1022
|
* in megabytes (ACTOR_MEMORY_MBYTES)
|
|
1019
1023
|
*/
|
|
1020
1024
|
memoryMbytes: number | null;
|
|
1025
|
+
/**
|
|
1026
|
+
* If set to "1", the web browsers inside the Actor should run in headless
|
|
1027
|
+
* mode because there is no windowing system available. (APIFY_HEADLESS)
|
|
1028
|
+
*/
|
|
1029
|
+
headless: string | null;
|
|
1030
|
+
/**
|
|
1031
|
+
* Is set to "1" if the Actor is running on Apify servers.
|
|
1032
|
+
* (APIFY_IS_AT_HOME)
|
|
1033
|
+
*/
|
|
1034
|
+
isAtHome: string | null;
|
|
1035
|
+
/**
|
|
1036
|
+
* The Apify Proxy password of the user who started the Actor. (APIFY_PROXY_PASSWORD)
|
|
1037
|
+
*/
|
|
1038
|
+
proxyPassword: string | null;
|
|
1039
|
+
proxyHostname: string | null;
|
|
1040
|
+
proxyPort: string | null;
|
|
1041
|
+
/**
|
|
1042
|
+
* You can visit this page to troubleshoot your proxy connection. (APIFY_PROXY_STATUS_URL)
|
|
1043
|
+
*/
|
|
1044
|
+
proxyStatusUrl: string | null;
|
|
1045
|
+
apiBaseUrl: string | null;
|
|
1046
|
+
apiPublicBaseUrl: string | null;
|
|
1047
|
+
chromeExecutablePath: string | null;
|
|
1048
|
+
dedicatedCpus: string | null;
|
|
1049
|
+
disableOutdatedWarning: 1 | null;
|
|
1050
|
+
fact: string | null;
|
|
1051
|
+
inputSecretsPrivateKeyFile: string | null;
|
|
1052
|
+
inputSecretsPrivateKeyPassphrase: string | null;
|
|
1053
|
+
/**
|
|
1054
|
+
* Defines the path to a local directory where KeyValueStore, Dataset, and RequestQueue
|
|
1055
|
+
* store their data. Typically, it is set to ./storage. If omitted, you should define the
|
|
1056
|
+
* APIFY_TOKEN environment variable instead. See more info on combination of this and
|
|
1057
|
+
* APIFY_TOKEN [here](https://docs.apify.com/sdk/js/docs/guides/environment-variables#combinations-of-apify_local_storage_dir-and-apify_token)(APIFY_LOCAL_STORAGE_DIR)
|
|
1058
|
+
*/
|
|
1059
|
+
localStorageDir: string | null;
|
|
1060
|
+
/**
|
|
1061
|
+
* Specifies the minimum log level, which can be one of the following values (in order of severity): DEBUG, INFO, WARNING and ERROR
|
|
1062
|
+
* (APIFY_LOG_LEVEL)
|
|
1063
|
+
*/
|
|
1064
|
+
logLevel: string | null;
|
|
1065
|
+
logFormat: string | null;
|
|
1066
|
+
/**
|
|
1067
|
+
* Origin for the actor run, i.e. how it was started. See [here](https://docs.apify.com/sdk/python/reference/enum/MetaOrigin)
|
|
1068
|
+
* for more details. (APIFY_META_ORIGIN)
|
|
1069
|
+
*/
|
|
1070
|
+
metaOrigin: string | null;
|
|
1071
|
+
/**
|
|
1072
|
+
* The key of the input record in the actor’s default key-value store (ACTOR_INPUT_KEY)
|
|
1073
|
+
*/
|
|
1074
|
+
inputKey: string | null;
|
|
1075
|
+
sdkLatestVersion: string | null;
|
|
1076
|
+
systemInfoIntervalMillis: string | null;
|
|
1077
|
+
workflowKey: string | null;
|
|
1078
|
+
actorBuildNumber: string | null;
|
|
1079
|
+
actorEventsWsUrl: string | null;
|
|
1080
|
+
actorMaxPaidDatasetItems: number | null;
|
|
1081
|
+
containerPort: number | null;
|
|
1082
|
+
containerUrl: string | null;
|
|
1083
|
+
defaultRequestQueueId: string | null;
|
|
1021
1084
|
}
|
|
1022
1085
|
export type UserFunc<T = unknown> = () => Awaitable<T>;
|
|
1023
1086
|
export interface CallOptions extends ActorCallOptions {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../src/actor.ts"],"names":[],"mappings":";AAMA,OAAO,KAAK,EACR,oBAAoB,EACpB,YAAY,EACZ,aAAa,EAEb,aAAa,EACb,eAAe,EAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAEH,OAAO,EAEP,YAAY,EAGf,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,SAAS,EAAe,UAAU,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEjH,OAAO,KAAK,EACR,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,OAAO,EACP,gBAAgB,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EACH,QAAQ,IAAI,cAAc,EAC1B,WAAW,EACd,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D;;;;GAIG;AACH,qBAAa,KAAK,CAAC,IAAI,SAAS,UAAU,GAAG,UAAU;IACnD,gBAAgB;IAChB,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC;IAExB;;;O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AAU;;;;CAItB,CAAC"}
|
|
@@ -3,19 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EXIT_CODES = exports.Actor = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const node_crypto_1 = require("node:crypto");
|
|
6
|
-
const ow_1 = tslib_1.__importDefault(require("ow"));
|
|
7
|
-
const input_secrets_1 = require("@apify/input_secrets");
|
|
8
6
|
const consts_1 = require("@apify/consts");
|
|
9
|
-
const
|
|
7
|
+
const input_secrets_1 = require("@apify/input_secrets");
|
|
10
8
|
const log_1 = tslib_1.__importDefault(require("@apify/log"));
|
|
11
|
-
const
|
|
9
|
+
const timeout_1 = require("@apify/timeout");
|
|
12
10
|
const core_1 = require("@crawlee/core");
|
|
13
11
|
const utils_1 = require("@crawlee/utils");
|
|
14
|
-
const
|
|
12
|
+
const apify_client_1 = require("apify-client");
|
|
13
|
+
const ow_1 = tslib_1.__importDefault(require("ow"));
|
|
14
|
+
const configuration_1 = require("./configuration");
|
|
15
|
+
const key_value_store_1 = require("./key_value_store");
|
|
15
16
|
const platform_event_manager_1 = require("./platform_event_manager");
|
|
16
17
|
const proxy_configuration_1 = require("./proxy_configuration");
|
|
17
|
-
const
|
|
18
|
-
const configuration_1 = require("./configuration");
|
|
18
|
+
const utils_2 = require("./utils");
|
|
19
19
|
/**
|
|
20
20
|
* `Actor` class serves as an alternative approach to the static helpers exported from the package. It allows to pass configuration
|
|
21
21
|
* that will be used on the instance methods. Environment variables will have precedence over this configuration.
|
|
@@ -142,7 +142,7 @@ class Actor {
|
|
|
142
142
|
* @param options
|
|
143
143
|
* @ignore
|
|
144
144
|
*/
|
|
145
|
-
main(userFunc, options) {
|
|
145
|
+
async main(userFunc, options) {
|
|
146
146
|
if (!userFunc || typeof userFunc !== 'function') {
|
|
147
147
|
throw new Error(`First parameter for Actor.main() must be a function (was '${userFunc === null ? 'null' : typeof userFunc}').`);
|
|
148
148
|
}
|
|
@@ -411,9 +411,9 @@ class Actor {
|
|
|
411
411
|
// Waiting for all the listeners to finish, as `.reboot()` kills the container.
|
|
412
412
|
await Promise.all([
|
|
413
413
|
// `persistState` for individual RequestLists, RequestQueue... instances to be persisted
|
|
414
|
-
...this.config.getEventManager().listeners("persistState" /* EventType.PERSIST_STATE */).map((x) => x()),
|
|
414
|
+
...this.config.getEventManager().listeners("persistState" /* EventType.PERSIST_STATE */).map(async (x) => x()),
|
|
415
415
|
// `migrating` to pause Apify crawlers
|
|
416
|
-
...this.config.getEventManager().listeners("migrating" /* EventType.MIGRATING */).map((x) => x()),
|
|
416
|
+
...this.config.getEventManager().listeners("migrating" /* EventType.MIGRATING */).map(async (x) => x()),
|
|
417
417
|
]);
|
|
418
418
|
const runId = this.config.get('actorRunId');
|
|
419
419
|
await this.apifyClient.run(runId).reboot();
|
|
@@ -488,11 +488,11 @@ class Actor {
|
|
|
488
488
|
}
|
|
489
489
|
const client = this.config.getStorageClient();
|
|
490
490
|
// just to be sure, this should be fast
|
|
491
|
-
await (0, timeout_1.addTimeoutToPromise)(() => client.setStatusMessage(statusMessage, { isStatusMessageTerminal, level }), 1000, 'Setting status message timed out after 1s').catch((e) => log_1.default.warning(e.message));
|
|
491
|
+
await (0, timeout_1.addTimeoutToPromise)(async () => client.setStatusMessage(statusMessage, { isStatusMessageTerminal, level }), 1000, 'Setting status message timed out after 1s').catch((e) => log_1.default.warning(e.message));
|
|
492
492
|
const runId = this.config.get('actorRunId');
|
|
493
493
|
if (runId) {
|
|
494
494
|
// just to be sure, this should be fast
|
|
495
|
-
const run = await (0, timeout_1.addTimeoutToPromise)(() => this.apifyClient.run(runId).get(), 1000, 'Getting the current run timed out after 1s').catch((e) => log_1.default.warning(e.message));
|
|
495
|
+
const run = await (0, timeout_1.addTimeoutToPromise)(async () => this.apifyClient.run(runId).get(), 1000, 'Getting the current run timed out after 1s').catch((e) => log_1.default.warning(e.message));
|
|
496
496
|
if (run) {
|
|
497
497
|
return run;
|
|
498
498
|
}
|
|
@@ -768,8 +768,10 @@ class Actor {
|
|
|
768
768
|
return undefined;
|
|
769
769
|
}
|
|
770
770
|
const proxyConfiguration = new proxy_configuration_1.ProxyConfiguration(options, this.config);
|
|
771
|
-
await proxyConfiguration.initialize()
|
|
772
|
-
|
|
771
|
+
if (await proxyConfiguration.initialize()) {
|
|
772
|
+
return proxyConfiguration;
|
|
773
|
+
}
|
|
774
|
+
return undefined;
|
|
773
775
|
}
|
|
774
776
|
/**
|
|
775
777
|
* Modifies Actor env vars so parsing respects the structure of {@apilink ApifyEnv} interface.
|
|
@@ -927,7 +929,7 @@ class Actor {
|
|
|
927
929
|
* the promise will be awaited. The user function is called with no arguments.
|
|
928
930
|
* @param options
|
|
929
931
|
*/
|
|
930
|
-
static main(userFunc, options) {
|
|
932
|
+
static async main(userFunc, options) {
|
|
931
933
|
return Actor.getDefaultInstance().main(userFunc, options);
|
|
932
934
|
}
|
|
933
935
|
static async init(options = {}) {
|
|
@@ -1359,7 +1361,7 @@ class Actor {
|
|
|
1359
1361
|
this._instance ?? (this._instance = new Actor());
|
|
1360
1362
|
return this._instance;
|
|
1361
1363
|
}
|
|
1362
|
-
_openStorage(storageClass, id, options = {}) {
|
|
1364
|
+
async _openStorage(storageClass, id, options = {}) {
|
|
1363
1365
|
const client = options.forceCloud ? this.apifyClient : undefined;
|
|
1364
1366
|
return core_1.StorageManager.openStorage(storageClass, id, client, this.config);
|
|
1365
1367
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actor.js","sourceRoot":"","sources":["../src/actor.ts"],"names":[],"mappings":";;;;AAAA,6CAA+C;AAE/C,0CAAiF;AACjF,wDAA2D;AAC3D,6DAA6B;AAC7B,4CAAqD;AASrD,wCAOuB;AAEvB,0CAA6D;AAS7D,+CAGsB;AACtB,oDAAoB;AAEpB,mDAAgD;AAChD,uDAAkD;AAClD,qEAAgE;AAEhE,+DAA2D;AAC3D,mCAAiE;AAEjE;;;;GAIG;AACH,MAAa,KAAK;I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F,sCAAsC;SACzC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAClB,CAAC;CACJ;AAt9CD,sBAs9CC;AA0PD;;;;;GAKG;AACU,QAAA,UAAU,GAAG;IACtB,OAAO,EAAE,CAAC;IACV,yBAAyB,EAAE,EAAE;IAC7B,aAAa,EAAE,EAAE;CACpB,CAAC"}
|
|
@@ -130,7 +130,7 @@ Object.defineProperty(Configuration, "ENV_MAP", {
|
|
|
130
130
|
// as well as apify specific ones
|
|
131
131
|
APIFY_TOKEN: 'token',
|
|
132
132
|
APIFY_METAMORPH_AFTER_SLEEP_MILLIS: 'metamorphAfterSleepMillis',
|
|
133
|
-
APIFY_TEST_PERSIST_INTERVAL_MILLIS: 'persistStateIntervalMillis',
|
|
133
|
+
APIFY_TEST_PERSIST_INTERVAL_MILLIS: 'persistStateIntervalMillis', // for BC, seems to be unused
|
|
134
134
|
APIFY_ACTOR_EVENTS_WS_URL: 'actorEventsWsUrl',
|
|
135
135
|
APIFY_ACTOR_ID: 'actorId',
|
|
136
136
|
APIFY_API_BASE_URL: 'apiBaseUrl',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../src/configuration.ts"],"names":[],"mappings":";;;;AAAA,0CAKuB;AACvB,wCAAmE;AAuBnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,MAAa,aAAc,SAAQ,MAAA,oBAAiB,CAAA;IA8EhD;;OAEG;IACM,GAAG,CAA0E,GAAM,EAAE,YAAgB;QAC1G,OAAO,KAAK,CAAC,GAAG,CAAC,GAAqC,EAAE,YAAY,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACM,GAAG,CAAC,GAA+B,EAAE,KAAW;QACrD,KAAK,CAAC,GAAG,CAAC,GAAqC,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;IAED;;OAEG;IACH,MAAM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