-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfetch_data_json.sh
More file actions
executable file
·13 lines (12 loc) · 946 Bytes
/
Copy pathfetch_data_json.sh
File metadata and controls
executable file
·13 lines (12 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
# get data.json from hhs and cdc, hhs redirects so -L, added it to cdc fetch for consistency
# hhs started reporting access denied when hitting hhs.gov directly, so going directly to healthdata, notices in 2025-09-24
curl -Ls https://healthdata.gov/data.json > data/hhs.gov.data.json
python -m json.tool data/hhs.gov.data.json > data/pretty.hhs.gov.data.json
curl -Ls https://data.cdc.gov/data.json > data/cdc.gov.data.json
python -m json.tool data/cdc.gov.data.json > data/pretty.cdc.gov.data.json
# I suppose I want code.json files to see how those change over time with hhs and cdc
# HHS returns access denied and I can't get around it, but CDC is working again
#curl -Ls https://www.hhs.gov/code.json > data/hhs.gov.code.json
#python -m json.tool data/hhs.gov.code.json > data/pretty.hhs.gov.code.json
curl -Ls https://www.cdc.gov/code.json > data/cdc.gov.code.json
python -m json.tool data/cdc.gov.code.json > data/pretty.cdc.gov.code.json