1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "industry": "dental",
10 "reviews": [
11 {
12 "text": "I waited for an hour past my appointment time. The dentist was good but the staff were rude.",
13 "rating": 2,
14 },
15 {
16 "text": "Excellent service, friendly staff and quick appointment. Very clean clinic.",
17 "rating": 5,
18 },
19 {
20 "text": "The treatment was expensive and there were hidden fees I wasn't told about.",
21 "rating": 2,
22 },
23 ],
24 "businessName": "",
25 "language": "en",
26 "analysisMode": "balanced",
27 "includeRecommendations": True,
28}
29
30
31run = client.actor("riad_h/industry-review-complaint-analyzer").call(run_input=run_input)
32
33
34print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38