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 "new-york"
14 ],
15 "locale": "en",
16 "urls": [
17 "https://feverup.com/en/new-york",
18 "https://www.feverup.com/en/london",
19 "https://feverup.com/es/madrid",
20 "https://feverup.com/en/new-york/candlelight",
21 "https://feverup.com/en/london/music-events",
22 "https://feverup.com/m/653922"
23 ],
24 "fetchDetails": false,
25 "maxReviewsPerEvent": 20,
26 "maxItems": 20,
27 "proxy": {
28 "useApifyProxy": true
29 },
30 "incrementalMode": false,
31 "emitUnchanged": false,
32 "emitExpired": false
33};
34
35
36const run = await client.actor("abotapi/fever-com-scraper").call(input);
37
38
39console.log('Results from dataset');
40console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41const { items } = await client.dataset(run.defaultDatasetId).listItems();
42items.forEach((item) => {
43 console.dir(item);
44});
45
46