1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "startUrls": [
12 {
13 "url": "https://www.glassdoor.com/Reviews/Apify-Reviews-E3100324.htm"
14 }
15 ],
16 "companyNames": [
17 "Apify"
18 ],
19 "searchQuery": "software engineer",
20 "location": "New York, NY",
21 "country": "US",
22 "includeJobs": true,
23 "includeReviews": true,
24 "includeCompanies": true,
25 "includeSalaries": false,
26 "maxResults": 25,
27 "maxJobs": 25,
28 "maxReviewsPerCompany": 25,
29 "maxPagesPerTarget": 5,
30 "daysOld": 14,
31 "jobType": "all",
32 "remoteOnly": false,
33 "includeNoSalaryJobs": true,
34 "sortReviewsBy": "default",
35 "responseFormat": "detailed",
36 "deduplicate": true,
37 "maxConcurrency": 1,
38 "proxyConfiguration": {
39 "useApifyProxy": true,
40 "apifyProxyGroups": [
41 "RESIDENTIAL"
42 ],
43 "apifyProxyCountry": "US"
44 }
45};
46
47
48const run = await client.actor("khadinakbar/glassdoor-scraper").call(input);
49
50
51console.log('Results from dataset');
52console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
53const { items } = await client.dataset(run.defaultDatasetId).listItems();
54items.forEach((item) => {
55 console.dir(item);
56});
57
58