1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "customquery": {
12 "ubisoft2": "smartrecruiters",
13 "pokemoncareers": "greenhouse",
14 "wealthsimple": "lever",
15 "rocycle": "personio",
16 "bunq": "recruitee",
17 "ryanair": "workable",
18 "https://zoom.wd5.myworkdayjobs.com/Zoom": "workday"
19 },
20 "query": [
21 "ubisoft2",
22 "pokemoncareers",
23 "wealthsimple",
24 "rocycle",
25 "bunq",
26 "ryanair",
27 "https://zoom.wd5.myworkdayjobs.com/Zoom"
28 ],
29 "proxy": {
30 "useApifyProxy": true
31 }
32};
33
34
35const run = await client.actor("canadesk/career-scraper-plus").call(input);
36
37
38console.log('Results from dataset');
39console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
40const { items } = await client.dataset(run.defaultDatasetId).listItems();
41items.forEach((item) => {
42 console.dir(item);
43});
44
45