1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "country": "GB",
12 "enableJobSearch": true,
13 "jobKeywords": [
14 "analyst",
15 "compliance"
16 ],
17 "jobLocation": "London",
18 "jobsPerQuery": 10,
19 "fetchJobDetails": false,
20 "enableJobDetails": false,
21 "jobIds": [],
22 "jobUrls": [],
23 "enableCompanyJobs": false,
24 "companyNames": [
25 "Citi"
26 ],
27 "jobsPerCompany": 10,
28 "enableScrapeByUrl": false,
29 "scrapeUrls": [],
30 "webhookFormat": "json",
31 "proxyConfiguration": {
32 "useApifyProxy": true,
33 "apifyProxyGroups": [
34 "RESIDENTIAL"
35 ],
36 "apifyProxyCountry": "GB"
37 }
38};
39
40
41const run = await client.actor("b2b_leads/efinancialcareers-real-time-data-scraper").call(input);
42
43
44console.log('Results from dataset');
45console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
46const { items } = await client.dataset(run.defaultDatasetId).listItems();
47items.forEach((item) => {
48 console.dir(item);
49});
50
51