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 "eventType": "any",
23 "minAttendees": 0,
24 "sweepCategories": false,
25 "categories": [],
26 "maxEvents": 60,
27 "maxGroups": 50,
28 "fetchEventDetails": false
29};
30
31
32const run = await client.actor("chorelet/meetup-events-scraper").call(input);
33
34
35console.log('Results from dataset');
36console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
37const { items } = await client.dataset(run.defaultDatasetId).listItems();
38items.forEach((item) => {
39 console.dir(item);
40});
41
42