Maryland government is releasing daily zip-code level data since 4/12. I copy and save the data everyday in this github repo, feel free to use these data!
The different data sources used in this project are:
- Maryland COVID19 cases (Data source)
- Zip code geographic shape data from Census (Data source)
- Population data (Data source)
- Zip code and City information (Data source)
- Cases by Zip code: MD opendata) or ./data, I'm experimenting to see if the MD opendata is updated promptly after the updating MD COVID19 dashboard.
To build the dashboard, do:
python dashboard.py update --use-db #using MD opendata
or
python dashboard.py update #using data collected from MD gov website
both of the commands will generate a html file: dashboard.html
The code can be run as docker image:
git clone [email protected]:wckdouglas/covid19_MD.git
cd covid19_MD
docker pull wckdouglas/md_covid19
docker run -v "$(pwd):/data" md_covid19 update -o /data/dashboard.html
pip install poetry
git clone [email protected]:wckdouglas/covid19_MD.git
cd covid_MD
poetry install
poetry run python dashboard.py update -o /data/dashboard.html
A cron job can be setup to run:
poetry run python update_today.py