1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [
10 "https://www.google.com/maps/place/?q=place_id:ChIJaYIUUk9u5kcRfAhRNL_ZJgw",
11 "https://www.google.com/maps/place/?q=place_id:ChIJu0Sg-TBu5kcRUIDfQSE4_yw",
12 "https://www.google.com/maps/place/?q=place_id:ChIJwxT3mL5v5kcRAsTd3v0lJOY",
13 ],
14 "maxItems": 20,
15 "maxReviewsPerPlace": 20,
16 "maxSeconds": 180,
17}
18
19
20run = client.actor("reapx/google-maps-review-scraper").call(run_input=run_input)
21
22
23print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
24for item in client.dataset(run.default_dataset_id).iterate_items():
25 print(item)
26
27