1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "operation": "search",
12 "keywords": [
13 "python developer"
14 ],
15 "locations": [
16 "London"
17 ],
18 "radiusMiles": "10",
19 "jobType": "any",
20 "hours": "any",
21 "workplace": "any",
22 "postedWithin": "any",
23 "minSalary": 0,
24 "maxSalary": 0,
25 "sector": "any",
26 "postedBy": "any",
27 "graduateOnly": false,
28 "easyApplyOnly": false,
29 "hideNoSalary": false,
30 "maxResults": 25,
31 "includeDetails": true,
32 "searchUrls": [],
33 "jobUrls": []
34};
35
36
37const run = await client.actor("sian.agency/reed-jobs-scraper").call(input);
38
39
40console.log('Results from dataset');
41console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
42const { items } = await client.dataset(run.defaultDatasetId).listItems();
43items.forEach((item) => {
44 console.dir(item);
45});
46
47