1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "searchQueries": [
12 "data scientist"
13 ],
14 "location": "Paris",
15 "country": "fr",
16 "contractTypes": [],
17 "remote": "any",
18 "maxJobs": 100,
19 "scrapeDescriptions": true,
20 "scrapeCompany": true,
21 "postedWithinDays": 0,
22 "startUrls": [],
23 "proxyConfiguration": {
24 "useApifyProxy": true,
25 "apifyProxyGroups": [
26 "RESIDENTIAL"
27 ]
28 },
29 "maxConcurrency": 5,
30 "maxRequestRetries": 5
31};
32
33
34const run = await client.actor("yasaslive/job-board-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