1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "a1",
12 "company": "Acme",
13 "technology": "Python",
14 "mentions": 24,
15 },
16 {
17 "id": "a2",
18 "company": "Acme",
19 "technology": "Rust",
20 "mentions": 12,
21 },
22 {
23 "id": "b1",
24 "company": "Beta",
25 "technology": "Java",
26 "mentions": 9,
27 },
28 ],
29 "previousItems": [
30 {
31 "id": "a1",
32 "company": "Acme",
33 "technology": "Python",
34 "mentions": 15,
35 },
36 {
37 "id": "a2",
38 "company": "Acme",
39 "technology": "Rust",
40 "mentions": 2,
41 },
42 {
43 "id": "b1",
44 "company": "Beta",
45 "technology": "Java",
46 "mentions": 11,
47 },
48 ],
49}
50
51
52run = client.actor("quanmatrix/job-tech-stack-change-intelligence").call(run_input=run_input)
53
54
55print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
56for item in client.dataset(run.default_dataset_id).iterate_items():
57 print(item)
58
59