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 {
14 "url": "https://au.seek.com/companies/atlassian-437216"
15 },
16 {
17 "url": "https://au.seek.com/companies/atlassian-437216/reviews"
18 },
19 {
20 "url": "https://au.seek.com/companies/atlassian-437216/reviews?page=2"
21 },
22 {
23 "url": "https://au.seek.com/companies/atlassian-437216/reviews?sortby=recent"
24 },
25 {
26 "url": "https://au.seek.com/companies/atlassian-437216/jobs"
27 },
28 {
29 "url": "https://nz.seek.com/companies/atlassian-437216"
30 },
31 {
32 "url": "https://nz.seek.com/companies/air-new-zealand-432555"
33 },
34 {
35 "url": "https://www.seek.com.au/companies/atlassian-437216"
36 },
37 {
38 "url": "https://www.seek.co.nz/companies/atlassian-437216"
39 },
40 {
41 "url": "https://au.seek.com/companies/437216"
42 },
43 {
44 "url": "https://au.seek.com/companies"
45 },
46 {
47 "url": "https://au.seek.com/companies?q=atlassian"
48 },
49 {
50 "url": "https://au.seek.com/companies?industry=1203"
51 },
52 {
53 "url": "https://au.seek.com/companies/browse?industry=1200"
54 }
55 ],
56 "proxyConfiguration": {
57 "useApifyProxy": true,
58 "apifyProxyGroups": []
59 },
60 "incrementalMode": false,
61 "emitUnchanged": false,
62 "emitExpired": false,
63 "ignoreFieldsForChanges": []
64};
65
66
67const run = await client.actor("abotapi/seek-companies-reviews-scraper").call(input);
68
69
70console.log('Results from dataset');
71console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
72const { items } = await client.dataset(run.defaultDatasetId).listItems();
73items.forEach((item) => {
74 console.dir(item);
75});
76
77