1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "query": "Python Developer",
12 "location": "Berlin, Germany",
13 "jobsToFetch": 10,
14 "contract": false,
15 "fullTime": true,
16 "partTime": false,
17 "temporary": false,
18 "volunteer": false,
19 "internship": false,
20 "internshipLevel": false,
21 "entryLevel": false,
22 "associate": false,
23 "midSeniorLevel": false,
24 "director": false,
25 "executive": false,
26 "remote": false,
27 "hybrid": false,
28 "proxySettings": {
29 "useApifyProxy": false
30 }
31};
32
33
34const run = await client.actor("data_wizard/linkedin-jobs-scraper").call(input);
35
36
37console.log('Results from dataset');
38console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
39const { items } = await client.dataset(run.defaultDatasetId).listItems();
40items.forEach((item) => {
41 console.dir(item);
42});
43
44