1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "companies",
10 "urls": [
11 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256/reviews",
12 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256",
13 "https://my.jobstreet.com/companies/aeon-168552725744507",
14 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256/",
15 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256?ref=share#x",
16 "http://sg.jobstreet.com/companies/dbs-bank-168553715857256",
17 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256/reviews?page=2",
18 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256/reviews?sortBy=recent",
19 "https://sg.jobstreet.com/companies/dbs-bank-168553715857256/jobs",
20 "https://sg.jobstreet.com/companies/168553715857256",
21 "https://sg.jobstreet.com/companies",
22 "https://my.jobstreet.com/companies",
23 "https://ph.jobstreet.com/companies",
24 "https://id.jobstreet.com/companies",
25 "https://sg.jobstreet.com/companies?keywords=dbs",
26 "https://sg.jobstreet.com/companies/browse-reviews",
27 "https://id.jobstreet.com/id/companies",
28 "https://sg.jobstreet.com/companies/browse",
29 "https://www.jobstreet.com.my/companies",
30 ],
31 "proxyConfiguration": {
32 "useApifyProxy": True,
33 "apifyProxyGroups": [],
34 },
35 "ignoreFieldsForChanges": [],
36}
37
38
39run = client.actor("abotapi/jobstreet-companies-reviews-scraper").call(run_input=run_input)
40
41
42print(f"πΎ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46