1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "enableSearch": True,
10 "searchTasks": [{
11 "query": "dermatologist",
12 "location": "Miami, FL",
13 "maxResults": 10,
14 }],
15 "maxResultsPerQuery": 10,
16 "enableProviderDetails": False,
17 "providerUrls": [],
18 "npiNumbers": [],
19 "enableLeadDetails": True,
20 "maxItems": 10,
21 "language": "en",
22 "webhookUrl": "",
23 "webhookFormat": "json",
24 "proxyConfiguration": {
25 "useApifyProxy": True,
26 "apifyProxyGroups": ["RESIDENTIAL"],
27 "apifyProxyCountry": "US",
28 },
29}
30
31
32run = client.actor("b2b_leads/healthgrades-real-time-data-scraper").call(run_input=run_input)
33
34
35print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39