1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "cities": [
13 "Helsinki"
14 ],
15 "urls": [
16 "https://wolt.com/en/aut/graz/restaurant/kfc-graz",
17 "https://wolt.com/en/aut/graz/restaurants",
18 "https://wolt.com/en/fin/helsinki/restaurants",
19 "https://wolt.com/en/aut/graz",
20 "https://wolt.com/en/aut/graz/category/pizza",
21 "https://wolt.com/en/aut/graz/brand/kfc",
22 "https://wolt.com/en/aut/graz/venue/kfc-graz",
23 "https://wolt.com/de/aut/graz/restaurant/kfc-graz",
24 "https://wolt.com/fi/fin/helsinki/restaurants",
25 "https://wolt.com/en/aut/graz/restaurants?sorting=rating",
26 "https://wolt.com/en/aut/graz/restaurant/kfc-graz?lang=de",
27 "https://wolt.com/en/discovery"
28 ],
29 "proxyConfiguration": {
30 "useApifyProxy": true
31 },
32 "incrementalMode": false,
33 "emitUnchanged": false,
34 "emitExpired": false,
35 "ignoreFieldsForChanges": []
36};
37
38
39const run = await client.actor("abotapi/wolt-restaurants-scraper").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