1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "currentItems": [
10 {
11 "id": "pain1",
12 "title": "battery life complaint",
13 "mentions": 3400,
14 "complaintRate": 68,
15 "purchaseIntentPct": 44,
16 "urgencyPct": 73,
17 "featureRequestRate": 51,
18 },
19 {
20 "id": "pain2",
21 "title": "color request",
22 "mentions": 820,
23 "complaintRate": 12,
24 "purchaseIntentPct": 18,
25 "urgencyPct": 15,
26 "featureRequestRate": 31,
27 },
28 ],
29 "previousItems": [{
30 "id": "pain1",
31 "title": "battery life complaint",
32 "mentions": 1900,
33 "complaintRate": 54,
34 "purchaseIntentPct": 30,
35 "urgencyPct": 52,
36 "featureRequestRate": 38,
37 }],
38}
39
40
41run = client.actor("quanmatrix/youtube-audience-intent-comment-intelligence").call(run_input=run_input)
42
43
44print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
45for item in client.dataset(run.default_dataset_id).iterate_items():
46 print(item)
47
48