1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "pairs": [
9 {
10 "id": "same-model",
11 "left": {
12 "title": "ACME A100 electric drill 18V blue tool only",
13 "brand": "ACME",
14 "mpn": "A100",
15 "color": "blue",
16 "packQuantity": "1",
17 "condition": "new",
18 },
19 "right": {
20 "title": "ACME A100 18 volt drill blue without battery",
21 "brand": "ACME",
22 "mpn": "A100",
23 "color": "blue",
24 "packQuantity": "1",
25 "condition": "new",
26 },
27 },
28 {
29 "id": "pack-conflict",
30 "left": {
31 "title": "Filter F20 1 pack",
32 "packQuantity": "1",
33 },
34 "right": {
35 "title": "Filter F20 6 pack",
36 "packQuantity": "6",
37 },
38 },
39 {
40 "id": "capacity-conflict",
41 "left": {
42 "title": "Phone Z 128 GB",
43 "capacity": "128 GB",
44 },
45 "right": {
46 "title": "Phone Z 256 GB",
47 "capacity": "256 GB",
48 },
49 },
50 ] }
51
52
53run = client.actor("dapper_locket/product-variant-match-audit").call(run_input=run_input)
54
55
56print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
57for item in client.dataset(run.default_dataset_id).iterate_items():
58 print(item)
59
60