1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchQueries": ["Cardiology | New York, NY"],
10 "startUrls": [{ "url": "https://www.healthgrades.com/usearch?what=Cardiology&where=New%20York%2C%20NY&pageNum=1" }],
11 "sortBy": "bestmatch",
12 "maxItems": 20,
13 "includeProfileDetails": True,
14 "includeReviews": True,
15 "maxReviewsPerProfile": 10,
16 "maxReviews": 500,
17 "maxRequestsPerCrawl": 500,
18 "maxConcurrency": 2,
19 "debug": False,
20 "proxy": { "useApifyProxy": False },
21}
22
23
24run = client.actor("ahmed_jasarevic/healthgrades-scraper").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