1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "query": "web scraping",
12 "experienceLevel": [
13 "entry",
14 "intermediate",
15 "expert"
16 ],
17 "jobType": [
18 "fixed",
19 "hourly"
20 ],
21 "clientHistory": [
22 "noHires",
23 "1to9Hires",
24 "10+Hires"
25 ],
26 "cookies": [],
27 "customFilters": [],
28 "maxJobAge": {
29 "value": 24,
30 "unit": "hours"
31 }
32};
33
34
35const run = await client.actor("neatrat/upwork-job-scraper").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