1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "channel": "jobs",
12 "keyword": "software engineer",
13 "employerId": "",
14 "companyUrl": "",
15 "companyName": "",
16 "detailUrls": [],
17 "jobListingIds": [],
18 "maxResults": 3,
19 "market": "us",
20 "location": "",
21 "jobTitle": "",
22 "maxPages": 1,
23 "enrichDetails": true,
24 "easyApply": false,
25 "remote": false,
26 "seniority": "",
27 "sortBy": "",
28 "domain": "",
29 "includeRaw": false,
30 "failover": true,
31 "workerBaseUrl": ""
32};
33
34
35const run = await client.actor("lentic_clockss/glassdoor-scraper").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45