1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "operation": "search",
12 "keywords": [
13 "software entwickler"
14 ],
15 "locations": [
16 "Wien"
17 ],
18 "radiusKm": "0",
19 "employmentType": "any",
20 "jobField": "any",
21 "jobLevel": "any",
22 "homeOfficeOnly": false,
23 "minMonthlySalaryEur": 0,
24 "requireSalary": false,
25 "postedWithinDays": 0,
26 "maxResults": 100,
27 "includeDetails": false,
28 "searchUrls": [],
29 "jobUrls": []
30};
31
32
33const run = await client.actor("sian.agency/karriere-at-jobs-scraper").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43