1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "previous": [{
10 "id": "001",
11 "title": "Linen shirt",
12 "price": 1499,
13 "currency": "INR",
14 "availability": "in_stock",
15 }],
16 "current": [{
17 "id": "001",
18 "title": "Linen shirt",
19 "price": 149.9,
20 "currency": "INR",
21 "availability": "in_stock",
22 }],
23 "options": {
24 "priceThresholdPct": 20,
25 "removalThresholdPct": 10,
26 "stockOutThresholdPct": 20,
27 },
28}
29
30
31run = client.actor("shoyeb/catalog-gate").call(run_input=run_input)
32
33
34print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38