1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "shippingInfo": "ispStore~1408:ifcStore~1401@ifcStoreState~US-WA@method~INSTORE_PICKUP",
10 "maxItems": 10,
11 "endPage": 5,
12 "startUrls": ["https://www.totalwine.com/spirits/c/c0030?&pageSize=24&aty=1,1,0,1"],
13 "extendOutputFunction": "($) => { return {} }",
14 "customMapFunction": "(object) => { return {...object} }",
15 "proxy": {
16 "useApifyProxy": True,
17 "apifyProxyCountry": "US",
18 "apifyProxyGroups": ["RESIDENTIAL"],
19 },
20}
21
22
23run = client.actor("oyildirim/totalwine-actor").call(run_input=run_input)
24
25
26print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
27for item in client.dataset(run["defaultDatasetId"]).iterate_items():
28 print(item)
29
30