1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "store_enabled": True,
10 "shop_url": "https://shop.flipperzero.one",
11 "page": 1,
12 "group_by_collection": True,
13 "product_enabled": True,
14 "product_urls": ["https://shop.flipperzero.one/products/flipper-zero"],
15 "collection_enabled": True,
16 "collection_url": "https://alpineskin.com/collections/skin-care-products",
17 "ordered_enabled": True,
18 "ordered_scope": "store",
19 "ordered_sort_type": "best-selling",
20 "ordered_collection_url": "https://alpineskin.com/collections/skin-care-products",
21}
22
23
24run = client.actor("igview-owner/shopify-scraper").call(run_input=run_input)
25
26
27print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
28for item in client.dataset(run["defaultDatasetId"]).iterate_items():
29 print(item)
30
31