1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "j1",
12 "company": "Acme",
13 "role": "AI Engineer",
14 "location": "Austin",
15 "openings": 18,
16 },
17 {
18 "id": "j2",
19 "company": "Acme",
20 "role": "AI Engineer",
21 "location": "Austin",
22 "openings": 14,
23 },
24 {
25 "id": "j3",
26 "company": "Beta",
27 "role": "Data Engineer",
28 "location": "Boston",
29 "openings": 6,
30 },
31 ],
32 "previousItems": [
33 {
34 "id": "j1",
35 "company": "Acme",
36 "role": "AI Engineer",
37 "location": "Austin",
38 "openings": 6,
39 },
40 {
41 "id": "j3",
42 "company": "Beta",
43 "role": "Data Engineer",
44 "location": "Boston",
45 "openings": 5,
46 },
47 ],
48}
49
50
51run = client.actor("quanmatrix/employer-hiring-concentration-risk-intelligence").call(run_input=run_input)
52
53
54print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
55for item in client.dataset(run.default_dataset_id).iterate_items():
56 print(item)
57
58