1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "startUrls": [],
12 "url": "",
13 "keyword": "software engineer",
14 "locations": [],
15 "location": "Bengaluru/Bangalore",
16 "cityAliases": [],
17 "categories": [],
18 "jobTypes": [],
19 "educationLevels": [],
20 "shifts": [],
21 "dateWithinDays": 0,
22 "monitoringMode": "all",
23 "stateKey": "",
24 "resetMonitoringState": false,
25 "includeDescription": true,
26 "includeCompanyDetails": true,
27 "includeLocationDetails": true,
28 "includeRequirements": true,
29 "includeSalary": true,
30 "includeContactPreferences": false,
31 "maxItems": 100,
32 "maxPages": 20,
33 "maxConcurrency": 3,
34 "maxRequestRetries": 3,
35 "proxyConfiguration": {
36 "useApifyProxy": false
37 }
38};
39
40
41const run = await client.actor("getascraper/apna-co-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