1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "tags": [
12 "dev",
13 "engineer",
14 "senior",
15 "python",
16 "javascript",
17 "react",
18 "golang",
19 "backend",
20 "front end",
21 "full stack",
22 "mobile",
23 "devops",
24 "cloud",
25 "data",
26 "infosec",
27 "design",
28 "designer",
29 "product",
30 "marketing",
31 "sales",
32 "customer support",
33 "ops",
34 "exec",
35 "finance",
36 "content writing",
37 "hr",
38 "recruiter",
39 "medical",
40 "legal",
41 "education",
42 "excel",
43 "saas",
44 "ecommerce",
45 "video",
46 "web dev",
47 "virtual assistant",
48 "non tech"
49 ],
50 "proxyConfiguration": {
51 "useApifyProxy": true,
52 "apifyProxyGroups": [
53 "RESIDENTIAL"
54 ],
55 "apifyProxyCountry": "US"
56 }
57};
58
59
60const run = await client.actor("scrapeworks/remoteok-jobs-scraper").call(input);
61
62
63console.log('Results from dataset');
64console.log(`πΎ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
65const { items } = await client.dataset(run.defaultDatasetId).listItems();
66items.forEach((item) => {
67 console.dir(item);
68});
69
70