1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "targets": [
10 {
11 "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
12 "mapPrice": 60,
13 "sku": "attic",
14 },
15 {
16 "url": "https://books.toscrape.com/catalogue/sharp-objects_997/index.html",
17 "mapPrice": 40,
18 "sku": "sharp",
19 },
20 ],
21 "authorizedSellers": [],
22 "alertMode": "violations-only",
23 "maxSpendUsd": 2,
24 "capMode": "capped",
25 "storeName": "demo-store",
26}
27
28
29run = client.actor("steadyworks/minimum-advertised-price-monitor").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36