1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "items": [
10 {
11 "reference": "demo-1",
12 "brand": "Goki",
13 "productName": "Wooden pull-along ship",
14 "ean": "4013594548496",
15 },
16 {
17 "reference": "demo-2",
18 "brand": "Wicked Costumes",
19 "productName": "Dinosaur toy costume",
20 },
21 {
22 "reference": "demo-3",
23 "brand": "Acme Gizmo Co",
24 "ean": "4006381333931",
25 },
26 ],
27 "maxItems": 3,
28 "lookbackMonths": 6,
29}
30
31
32run = client.actor("goobertje/eu-product-recall-compliance-matcher").call(run_input=run_input)
33
34
35print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39