1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "startUrls": [
9 "https://www.google.com/maps/place/Yellowstone+National+Park/@44.5857951,-110.5140571,9z/data=!3m1!4b1!4m5!3m4!1s0x5351e55555555555:0xaca8f930348fe1bb!8m2!3d44.427963!4d-110.588455?hl=en-GB",
10 "https://maps.app.goo.gl/vErvoGd5JjKgbtkG8",
11 "Empire State Building",
12 "0x89c25090129c363d:0x40c6a5770d25022b",
13 "ChIJS6GCf0kryYARN94pvdBZnQg",
14 ] }
15
16
17run = client.actor("api-ninja/google-maps-reviews-scraper").call(run_input=run_input)
18
19
20print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
21for item in client.dataset(run["defaultDatasetId"]).iterate_items():
22 print(item)
23
24