1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "companies",
12 "urls": [
13 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256/reviews",
14 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256",
15 "https://my.jobstreet.com/companies/aeon-168552725744507",
16 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256/",
17 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256?ref=share#x",
18 "http://sg.jobstreet.com/companies/dbs-bank-168553715857256",
19 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256/reviews?page=2",
20 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256/reviews?sortBy=recent",
21 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256/jobs",
22 "https://sg.jobstreet.com/companies/168553715857256",
23 "https://sg.jobstreet.com/companies",
24 "https://my.jobstreet.com/companies",
25 "https://ph.jobstreet.com/companies",
26 "https://id.jobstreet.com/companies",
27 "https://sg.jobstreet.com/companies?keywords=dbs",
28 "https://sg.jobstreet.com/companies/browse-reviews",
29 "https://id.jobstreet.com/id/companies",
30 "https://sg.jobstreet.com/companies/browse",
31 "https://www.jobstreet.com.my/companies"
32 ],
33 "proxyConfiguration": {
34 "useApifyProxy": true,
35 "apifyProxyGroups": []
36 },
37 "ignoreFieldsForChanges": []
38};
39
40
41const run = await client.actor("abotapi/jobstreet-companies-reviews-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