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