1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "actorNameInclude": [],
10 "actorNameExclude": [],
11 "taskNameInclude": [],
12 "emailRecipients": [],
13 "customDimensions": [
14 {
15 "field": "actorName",
16 "label": "Actor Name",
17 "fallback": "Unknown Actor",
18 },
19 {
20 "field": "status",
21 "label": "Run Status",
22 "fallback": "Unknown Status",
23 },
24 ],
25 "excludeFields": [],
26}
27
28
29run = client.actor("hamza.alwan/actors-monitoring").call(run_input=run_input)
30
31
32print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
33for item in client.dataset(run["defaultDatasetId"]).iterate_items():
34 print(item)
35
36