1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "placeIdOrUrl": "https://www.google.com/maps/place/Google/@59.326069,-95.989235,3z/data=!3m1!4b1!4m6!3m5!1s0xfdeda002b05abf3:0x30dd244877e2a5bc!8m2!3d59.326069!4d-95.989235!16s%2Fg%2F11vf0j1l59?entry=ttu&g_ep=EgoyMDI1MDUyMS4wIKXMDSoJLDEwMjExNDUzSAFQAw%3D%3D",
10 "sortBy": "mostRelevant",
11 "ratings": [
12 1,
13 2,
14 3,
15 4,
16 5,
17 ],
18 "keywords": [],
19 "endDate": "",
20 "searchQuery": "",
21}
22
23
24run = client.actor("neatrat/google-maps-reviews-scraper").call(run_input=run_input)
25
26
27print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
28for item in client.dataset(run["defaultDatasetId"]).iterate_items():
29 print(item)
30
31