1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "fullName": "Olamide Lawal",
12 "targetRoles": [
13 "Data Scientist",
14 "Machine Learning Engineer"
15 ],
16 "preferredLocations": [
17 "Remote",
18 "Nigeria",
19 "Worldwide"
20 ],
21 "cvText": "Machine learning and software engineer experienced in Python, PyTorch, predictive modeling, data pipelines, and embedded IoT architectures.",
22 "minScore": 50,
23 "maxPacks": 1,
24 "resetMemory": true
25};
26
27
28const run = await client.actor("em07_adoz/workdey-career-agent").call(input);
29
30
31console.log('Results from dataset');
32console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
33const { items } = await client.dataset(run.defaultDatasetId).listItems();
34items.forEach((item) => {
35 console.dir(item);
36});
37
38