1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "v2.4",
12 "title": "Version 2.4",
13 "rating": 2.9,
14 "ratingDropPct": 31,
15 "bugRate": 69,
16 "negativePct": 72,
17 "reviewVelocityPct": 88,
18 "crashMentionRate": 44,
19 },
20 {
21 "id": "v2.3",
22 "title": "Version 2.3",
23 "rating": 4.3,
24 "ratingDropPct": 2,
25 "bugRate": 18,
26 "negativePct": 21,
27 "reviewVelocityPct": 34,
28 "crashMentionRate": 8,
29 },
30 ],
31 "previousItems": [{
32 "id": "v2.4",
33 "title": "Version 2.4 beta",
34 "rating": 4,
35 "ratingDropPct": 8,
36 "bugRate": 31,
37 "negativePct": 34,
38 "reviewVelocityPct": 41,
39 "crashMentionRate": 15,
40 }],
41}
42
43
44run = client.actor("quanmatrix/app-release-regression-rating-drift-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