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 "listType": "programs",
13 "location": "",
14 "keyword": "",
15 "programType": "any",
16 "country": "",
17 "stage": "",
18 "sector": "",
19 "sortBy": "open",
20 "urls": [
21 "https://www.f6s.com/accelerators",
22 "https://www.f6s.com/programs",
23 "https://www.f6s.com/programs/london",
24 "https://www.f6s.com/programs/united-kingdom/london",
25 "https://www.f6s.com/programs/united-kingdom/london/software",
26 "https://www.f6s.com/accelerators/london",
27 "https://www.f6s.com/events",
28 "https://www.f6s.com/events/london",
29 "https://www.f6s.com/jobs",
30 "https://www.f6s.com/jobs/london",
31 "https://www.f6s.com/accelerators?page=2",
32 "https://www.f6s.com/programs/london?page=2",
33 "https://www.f6s.com/programs?keywords[]=ai&type[]=grant&sort=popular",
34 "https://www.f6s.com/programs?type[]=grant",
35 "https://www.f6s.com/blacknight-space-labs-w27-cohort",
36 "https://www.f6s.com/blacknight-space-labs-w27-cohort/about",
37 "https://www.f6s.com/startupbootcamp"
38 ],
39 "fetchDetails": false,
40 "maxPages": 0,
41 "maxListings": 20,
42 "proxy": {
43 "useApifyProxy": true,
44 "apifyProxyGroups": [
45 "RESIDENTIAL"
46 ]
47 },
48 "ignoreFieldsForChanges": []
49};
50
51
52const run = await client.actor("abotapi/f6s-directory-scraper").call(input);
53
54
55console.log('Results from dataset');
56console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
57const { items } = await client.dataset(run.defaultDatasetId).listItems();
58items.forEach((item) => {
59 console.dir(item);
60});
61
62