1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://www.google.com/maps/search/?api=1&query=Dumpling%20House&query_place_id=ChIJD2l2k7ZL0YkRC80d-3MV1lM" }],
10 "maxReviews": 5,
11 "reviewsStartDate": "",
12 "reviewsSort": "newest",
13 "includeReviewThemes": True,
14 "includeDraftReplies": True,
15 "draftReplyRatings": "negativeAndNeutral",
16 "language": "en",
17 "proxyConfiguration": { "useApifyProxy": True },
18}
19
20
21run = client.actor("rainminer/google-maps-place-reviews-scraper").call(run_input=run_input)
22
23
24print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
25for item in client.dataset(run.default_dataset_id).iterate_items():
26 print(item)
27
28