1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "dataset1_ids": ["GYVCj4hEeqnX3dJyu"],
10 "dataset2_ids": ["OmzHV4VEByO4KohMF"],
11 "input_mapping": {
12 "eshop1": {
13 "id": "url",
14 "name": "name",
15 "price": "price",
16 "short_description": "shortDescription",
17 "long_description": "longDescription",
18 "specification": "specification",
19 "code": [
20 "sku",
21 "productModel",
22 ],
23 },
24 "eshop2": {
25 "id": "url",
26 "name": "name",
27 "price": "price",
28 "short_description": "shortDescription",
29 "long_description": "longDescription",
30 "specification": "specification",
31 "code": [
32 "sku",
33 "productModel",
34 ],
35 },
36 },
37}
38
39
40run = client.actor("equidem/ai-product-matcher").call(run_input=run_input)
41
42
43print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
44for item in client.dataset(run["defaultDatasetId"]).iterate_items():
45 print(item)
46
47