1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "keywords": [
12 "https://www.vivino.com/CA/en/w/2141966?year=2020",
13 "https://www.vivino.com/alamos-malbec/w/1879"
14 ],
15 "reviewsfilter": [
16 1,
17 2,
18 3,
19 4,
20 5
21 ],
22 "winetypes": [
23 "Red",
24 "White",
25 "Rose",
26 "Sparkling",
27 "Dessert",
28 "Fortified"
29 ],
30 "grapetypes": [],
31 "foodtypes": [],
32 "proxy": {
33 "useApifyProxy": true,
34 "apifyProxyGroups": []
35 }
36};
37
38
39const run = await client.actor("canadesk/vivino-bulk").call(input);
40
41
42console.log('Results from dataset');
43console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
44const { items } = await client.dataset(run.defaultDatasetId).listItems();
45items.forEach((item) => {
46 console.dir(item);
47});
48
49