1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "keywords": [],
13 "locations": [],
14 "jobType": "",
15 "minSalary": 0,
16 "salaryType": "0",
17 "postedWithin": "0",
18 "sortBy": "1",
19 "urls": [
20 "https://www.irishjobs.ie/jobs/software-engineer/in-dublin"
21 ],
22 "maxListings": 20,
23 "fetchDetails": false,
24 "incrementalMode": false,
25 "emitUnchanged": false,
26 "emitExpired": false,
27 "proxy": {
28 "useApifyProxy": true,
29 "apifyProxyGroups": [
30 "RESIDENTIAL"
31 ]
32 },
33 "mcpConnectors": [],
34 "maxNotifyListings": 50
35};
36
37
38const run = await client.actor("abotapi/irishjobs-ie").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