1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "nodes": [{
10 "name": "Fetch",
11 "type": "example.fetch",
12 "typeVersion": 1,
13 "credentials": { "exampleApi": {
14 "id": "source-id",
15 "name": "service-alias",
16 } },
17 }],
18 "targetCredentials": [{
19 "id": "target-id",
20 "name": "service-alias",
21 "type": "exampleApi",
22 }],
23 "targetNodeTypes": [{
24 "type": "example.fetch",
25 "supportedVersions": [
26 1,
27 2,
28 ],
29 }],
30}
31
32
33run = client.actor("salim-operator-labs/my-actor").call(run_input=run_input)
34
35
36print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40