1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keywords": [
10 "https://www.vivino.com/CA/en/w/2141966?year=2020",
11 "https://www.vivino.com/alamos-malbec/w/1879",
12 ],
13 "reviewsfilter": [
14 1,
15 2,
16 3,
17 4,
18 5,
19 ],
20 "winetypes": [
21 "Red",
22 "White",
23 "Rose",
24 "Sparkling",
25 "Dessert",
26 "Fortified",
27 ],
28 "grapetypes": [],
29 "foodtypes": [],
30 "proxy": {
31 "useApifyProxy": True,
32 "apifyProxyGroups": [],
33 },
34}
35
36
37run = client.actor("canadesk/vivino-bulk").call(run_input=run_input)
38
39
40print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
41for item in client.dataset(run["defaultDatasetId"]).iterate_items():
42 print(item)
43
44