1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "place_urls": ["https://www.google.com/maps/place/Gate+City+Coffee/@42.8721827,-112.5145324,13z/data=!4m12!1m2!2m1!1scafe+near+me!3m8!1s0x53554f38893bbb89:0x222e4f25f9ee250!8m2!3d42.8620172!4d-112.4511824!9m1!1b1!15sCgxjYWZlIG5lYXIgbWUiA5ABAVoOIgxjYWZlIG5lYXIgbWWSAQtjb2ZmZWVfc2hvcKoBPhABKggiBGNhZmUoADIeEAEiGtpRAY4m-mMFxs0ifZy5vM6DMp9S9_hPUXd0MhAQAiIMY2FmZSBuZWFyIG1l4AEA!16s%2Fg%2F11t19c1zg9?entry=ttu&g_ep=EgoyMDI1MDYxMS4wIKXMDSoASAFQAw%3D%3D"],
10 "place_ids": ["0x53554f38893bbb89:0x222e4f25f9ee250"],
11 "search": ["restaurant"],
12}
13
14
15run = client.actor("web_wanderer/google-reviews-scraper").call(run_input=run_input)
16
17
18print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
19for item in client.dataset(run["defaultDatasetId"]).iterate_items():
20 print(item)
21
22