1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "search": {
10 "searchTerms": ["dentist"],
11 "locations": ["Jackson Heights NY"],
12 "numberOfPlaces": 20,
13 },
14 "lead_generation": {
15 "placeInput": "",
16 "searchTerms": ["dentist"],
17 "locations": ["Jackson Heights NY"],
18 "numberOfPlaces": 20,
19 "enrichDetails": False,
20 "enrichWebsites": False,
21 "enrichGoogleWebResults": False,
22 "maxReviews": 20,
23 },
24}
25
26
27run = client.actor("crawlio/google-maps-lead-extractor").call(run_input=run_input)
28
29
30print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
31for item in client.dataset(run["defaultDatasetId"]).iterate_items():
32 print(item)
33
34