1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchTerms": ["coffee shop"],
10 "location": "Boulder, Colorado, USA",
11 "maxPlacesPerSearch": 50,
12 "locations": [],
13 "startUrls": [],
14 "placeIds": [],
15 "maxTotalPlaces": 1000,
16 "maxReviews": 0,
17 "proxyConfiguration": {
18 "useApifyProxy": True,
19 "apifyProxyGroups": ["RESIDENTIAL"],
20 },
21}
22
23
24run = client.actor("data_ops_main/easy-google-maps-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