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