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 "searches": [
13 {
14 "keywords": "software engineer",
15 "location": "Sydney, NSW",
16 "country": "au"
17 }
18 ],
19 "urls": [
20 "https://au.jora.com/software-engineer-jobs-in-Sydney-NSW",
21 "https://au.jora.com/Software-Engineer-jobs-in-Sydney-NSW?p=2",
22 "https://au.jora.com/Software-Engineer-jobs",
23 "https://au.jora.com/jobs-in-Sydney-NSW",
24 "https://au.jora.com/Developer-jobs-in-Sydney-NSW?st=date",
25 "https://au.jora.com/Developer-jobs-in-Sydney-NSW?sa=90000&qa=y&r=25",
26 "https://au.jora.com/job/Software-Engineer-0155ab88203c8731b751b7006d496e7f"
27 ],
28 "proxy": {
29 "useApifyProxy": true,
30 "apifyProxyGroups": [
31 "RESIDENTIAL"
32 ],
33 "apifyProxyCountry": "AU"
34 }
35};
36
37
38const run = await client.actor("abotapi/jora-jobs-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