See code in GitHub repo
Visualizations of data here built with MongoDB and Metabase
Status updates pulled daily from here https://data.ontario.ca/dataset/status-of-covid-19-cases-in-ontario
Case data pulled daily from here https://data.ontario.ca/en/dataset/confirmed-positive-cases-of-covid-19-in-ontario
Total cases for Canada and other provinces pulled daily from here: https://www.canada.ca/en/public-health/services/diseases/2019-novel-coronavirus-infection.html
CSV of world data from Our World in Data
$ pip install -r requirements.text
Create a text file named .env
and
add MONGO_URI=<mongo_uri>
or
$ export MONGO_URI=<mongo_uri>
$ python src/sync_ontario_statuses.py
stores updates in ontario_statuses
collection
$ python src/sync_ontario_cases.py
stores updates in ontario_cases
collection
Fetch csv of updates and store as json
$ python src/update_canada_data.py
Fetch csv from Our World in Data and store as json
$ python src/update_country_data.py
Scrape various Ontario PHUs and store as json and csv
$ python src/update_ontario_region_data.py
Store various jso files in db
$ python src/sync_with_db.py