1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mrfUrls": [
10 { "url": "https://raw.githubusercontent.com/CMSgov/hospital-price-transparency/master/examples/JSON/v3_json_format_example.json" },
11 { "url": "https://raw.githubusercontent.com/CMSgov/hospital-price-transparency/master/examples/CSV/Tall%20Format%20Examples/V3.0.0_Tall_CSV_Format_Example.csv" },
12 { "url": "https://raw.githubusercontent.com/CMSgov/hospital-price-transparency/master/examples/CSV/Wide%20Format%20Examples/V3.0.0_Wide_CSV_Format_Example.csv" },
13 ],
14 "facilityState": "",
15 "facilityNames": [],
16 "facilityCcns": [],
17 "billingCodeType": "",
18 "billingCodes": [],
19 "payerNames": [],
20 "maxRecords": 150,
21}
22
23
24run = client.actor("maximedupre/hospital-price-transparency-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