1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "query": [
12 "python"
13 ],
14 "location": [],
15 "startUrls": [],
16 "companyName": [],
17 "domain": [],
18 "salaryFrom": 0,
19 "salaryTo": 0,
20 "postedWithinDays": 0,
21 "includeKeywords": {},
22 "excludeKeywords": {},
23 "maxResults": 25,
24 "maxPages": 5,
25 "stateKey": "default",
26 "proxyConfiguration": {
27 "useApifyProxy": true
28 }
29};
30
31
32const run = await client.actor("parsebird/djinni-jobs-scraper").call(input);
33
34
35console.log('Results from dataset');
36console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
37const { items } = await client.dataset(run.defaultDatasetId).listItems();
38items.forEach((item) => {
39 console.dir(item);
40});
41
42