1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "c1",
12 "title": "Employer Alpha",
13 "rating": 2.8,
14 "negativePct": 66,
15 "turnoverMentionRate": 58,
16 "managementIssueRate": 63,
17 "salaryGapPct": 24,
18 "reviewCount": 4600,
19 },
20 {
21 "id": "c2",
22 "title": "Employer Beta",
23 "rating": 4.2,
24 "negativePct": 18,
25 "turnoverMentionRate": 12,
26 "managementIssueRate": 17,
27 "salaryGapPct": 6,
28 "reviewCount": 3100,
29 },
30 ],
31 "previousItems": [{
32 "id": "c1",
33 "title": "Employer Alpha",
34 "rating": 3.4,
35 "negativePct": 48,
36 "turnoverMentionRate": 39,
37 "managementIssueRate": 44,
38 "salaryGapPct": 18,
39 "reviewCount": 3900,
40 }],
41}
42
43
44run = client.actor("quanmatrix/glassdoor-employer-retention-risk-intelligence").call(run_input=run_input)
45
46
47print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
48for item in client.dataset(run.default_dataset_id).iterate_items():
49 print(item)
50
51