1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "productCsv": [{
10 "title": "Demo Tee",
11 "sku": "TEE-RED-S",
12 "option1Name": "Color",
13 "option1Value": "Red",
14 "urlHandle": "demo-tee",
15 "variantImageUrl": "https://cdn.example/p/tee-red-s-csv.jpg",
16 }],
17 "livePageUrls": ["https://demo-store-01.example/products/tee"],
18 "pages": { "pages": { "https://demo-store-01.example/products/tee": { "variants": [{
19 "sku": "TEE-RED-S",
20 "optionName": "Color",
21 "optionValue": "Red",
22 "imageUrl": "https://cdn.example/p/tee-red-s-live.jpg",
23 }] } } },
24 "scopeStore": "demo-store-01",
25 "runId": "audit-001",
26 "freshnessHours": 72,
27 "capMode": "capped",
28}
29
30
31run = client.actor("steadyworks/shopify-variant-image-audit").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