1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "storeUrls": ["https://www.allbirds.com"],
10 "maxProducts": 50,
11 "maxEstimatedCostUsd": 0.1,
12 "proxyConfiguration": {
13 "useApifyProxy": True,
14 "apifyProxyGroups": ["RESIDENTIAL"],
15 "apifyProxyCountry": "US",
16 },
17 "maxPagesPerStore": 30,
18 "requestTimeoutSecs": 20,
19 "maxRetries": 1,
20 "allowResidentialFallback": False,
21}
22
23
24run = client.actor("pellucid_bird/shopify-catalog-lens").call(run_input=run_input)
25
26
27print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
28for item in client.dataset(run.default_dataset_id).iterate_items():
29 print(item)
30
31