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 "enrichCompanyDetails": false,
15 "easyApply": false,
16 "under10Applicants": false,
17 "contract": false,
18 "fullTime": true,
19 "partTime": false,
20 "temporary": false,
21 "volunteer": false,
22 "internship": false,
23 "internshipLevel": false,
24 "entryLevel": false,
25 "associate": false,
26 "midSeniorLevel": false,
27 "director": false,
28 "executive": false,
29 "remote": false,
30 "hybrid": false
31};
32
33
34const run = await client.actor("crawlworks/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