1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "reviewsJson": [{
9 "placeName": "Downtown Specialty Coffee Roasters",
10 "reviews": [
11 {
12 "stars": 5,
13 "text": "Single origin espresso is phenomenal and the baristas are super friendly.",
14 },
15 {
16 "stars": 5,
17 "text": "Best pour over coffee in the city with fast Wi-Fi for remote work.",
18 },
19 {
20 "stars": 2,
21 "text": "Weekend wait time is over 25 minutes and seating is very cramped.",
22 },
23 ],
24 }] }
25
26
27run = client.actor("invaluable_rondeau/google-maps-reviews-ai-competitive-report").call(run_input=run_input)
28
29
30print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
31for item in client.dataset(run.default_dataset_id).iterate_items():
32 print(item)
33
34