1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "events",
12 "cities": [
13 "Berlin, Germany"
14 ],
15 "keywords": [],
16 "groupUrlnames": [
17 "python-users-berlin-pub"
18 ],
19 "radius": 10,
20 "startsAfter": "",
21 "startsBefore": "7 days",
22 "onlyNew": false,
23 "watchKey": "",
24 "eventType": "any",
25 "minAttendees": 0,
26 "sweepCategories": false,
27 "categories": [],
28 "maxEvents": 60,
29 "maxGroups": 50,
30 "fetchEventDetails": false
31};
32
33
34const run = await client.actor("chorelet/meetup-events-scraper").call(input);
35
36
37console.log('Results from dataset');
38console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
39const { items } = await client.dataset(run.defaultDatasetId).listItems();
40items.forEach((item) => {
41 console.dir(item);
42});
43
44