1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "extractContacts": True,
10 "maxPlaces": 200,
11 "proxyGroup": "RESIDENTIAL",
12 "searchTerms": [
13 "plumber in Austin",
14 "HVAC contractor in Austin",
15 "electrician in Austin",
16 "roofing company in Austin",
17 "locksmith in Austin",
18 "house cleaning service in Austin",
19 ],
20 "useApifyProxy": True,
21}
22
23
24run = client.actor("apitory/google-maps-home-services-leads").call(run_input=run_input)
25
26
27print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
28for item in client.dataset(run.default_dataset_id).iterate_items():
29 print(item)
30
31