1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "enableJobSearch": true,
12 "jobKeywords": [
13 "python"
14 ],
15 "jobCategories": [
16 "remote-programming-jobs"
17 ],
18 "jobLocation": "",
19 "jobCompany": "",
20 "jobDatePosted": "any",
21 "jobsPerQuery": 10,
22 "searchFetchFullDetails": false,
23 "enableScrapeByUrl": false,
24 "jobUrls": [],
25 "webhookUrl": "",
26 "webhookFormat": "json",
27 "proxyConfiguration": {
28 "useApifyProxy": true,
29 "apifyProxyGroups": [
30 "RESIDENTIAL"
31 ],
32 "apifyProxyCountry": "US"
33 }
34};
35
36
37const run = await client.actor("b2b_leads/we-work-remotely-real-time-data-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