1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "cadence": "daily",
10 "competitorPolicyUrls": [
11 "https://shop-a.example.com/shipping",
12 "https://shop-a.example.com/returns",
13 "https://shop-a.example.com/cart",
14 "https://shop-b.example.com/shipping",
15 "https://shop-b.example.com/returns",
16 "https://shop-b.example.com/cart",
17 "https://shop-c.example.com/shipping",
18 "https://shop-c.example.com/returns",
19 "https://shop-c.example.com/cart",
20 ],
21 "competitors": [
22 "shop-a.example.com",
23 "shop-b.example.com",
24 "shop-c.example.com",
25 ],
26 "computeCapUsd": 39,
27 "maxSpendUsd": 29,
28 "capMode": "capped",
29 "synthetic": True,
30 "watchId": "shipping-watch-demo-01",
31}
32
33
34run = client.actor("steadyworks/shipping-policy-change-monitor").call(run_input=run_input)
35
36
37print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41