occiviccoders / covid-response-OC

To help the local community with covid-19
MIT License
1 stars 3 forks source link

OC Health Agency changed their tracking! Need to re-write how to pull data #13

Closed andrewakagawa closed 4 years ago

andrewakagawa commented 4 years ago

Most of the OC data (including city data is now on arcgis) https://occovid19.ochealthinfo.com/coronavirus-in-oc

andrewakagawa commented 4 years ago

Here's the new arcgis city endpoint. https://services2.arcgis.com/LORzk2hk9xzHouw9/arcgis/rest/services/VIEW_LAYER_COVID19_Dashboard_2p0_Cities/FeatureServer/0/query?where=0%3D0&outFields=%2A&f=json

Here is for demographics: https://services2.arcgis.com/LORzk2hk9xzHouw9/ArcGIS/rest/services/occovid_democase_csv/FeatureServer/0/query?where=0%3D0&outFields=%2A&f=json

This stackoverflow post was very helpful: https://stackoverflow.com/questions/50161492/how-do-i-scrape-data-from-an-arcgis-online-map

The hospital data is separate: https://data.ca.gov/dataset/covid-19-hospital-data/resource/42d33765-20fd-44b8-a978-b083b7542225