1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "actorNameInclude": ["actor-name"],
10 "actorNameExclude": ["testing-actor"],
11 "taskNameInclude": [],
12 "customDimensions": [
13 {
14 "field": "actorName",
15 "label": "Actor Name",
16 "fallback": "Unknown Actor",
17 },
18 {
19 "field": "status",
20 "label": "Run Status",
21 "fallback": "Unknown Status",
22 },
23 ],
24 "excludeFields": [],
25 "emailRecipients": [],
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