1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "internships",
12 "startUrls": [],
13 "keyword": "",
14 "keywords": [],
15 "locations": [],
16 "category": "",
17 "workFromHome": false,
18 "partTime": false,
19 "datePosted": "all",
20 "specialFilters": [],
21 "skills": [],
22 "excludeKeywords": [],
23 "minStipend": 0,
24 "minSalary": 0,
25 "maxDurationMonths": 0,
26 "maxExperienceYears": 0,
27 "includeDetails": false,
28 "maxApplicantsPerOpening": 0,
29 "maxApplicants": 0,
30 "minOpenings": 0,
31 "closingWithinDays": 0,
32 "monitorName": "",
33 "onlyChanges": true,
34 "surgePercent": 50,
35 "monitoringMode": "off",
36 "monitoringStoreName": "internshala-monitor-state",
37 "monitorScope": "auto",
38 "enrichEmails": false,
39 "maxResults": 25,
40 "sortBy": "relevance",
41 "maxConcurrency": 10,
42 "proxyConfiguration": {
43 "useApifyProxy": true
44 },
45 "debugLogging": false
46};
47
48
49const run = await client.actor("getascraper/internshala-scraper").call(input);
50
51
52console.log('Results from dataset');
53console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
54const { items } = await client.dataset(run.defaultDatasetId).listItems();
55items.forEach((item) => {
56 console.dir(item);
57});
58
59