jeremymoreau / covid19mtl

COVID-19 epidemiological dashboard for Montreal
https://covid19mtl.ca/en
MIT License
30 stars 11 forks source link

New figure: Outbreaks #62

Open mschoettle opened 3 years ago

mschoettle commented 3 years ago

Montreal and QC have data on outbreaks. Either a figure showing the current outbreaks or a weekly progression of the locations and their number of outbreaks would be great to have.

Data from QC is available here: https://www.quebec.ca/en/health/health-issues/a-z/2019-coronavirus/situation-coronavirus-in-quebec/#c75434. The data comes from this CSV: https://cdn-contenu.quebec.ca/cdn-contenu/sante/documents/Problemes_de_sante/covid-19/csv/eclosions-par-milieu-en.csv?t=1609775100

I added this recently to be scraped. Further past data could be retrieved from the Wayback Machine (https://web.archive.org/web/*/https://cdn-contenu.quebec.ca/cdn-contenu/sante/documents/Problemes_de_sante/covid-19/csv/eclosions-par-milieu-en.csv?t=*)

For Sante Montreal, the data is provided weekly in a PDF linked to on this page: https://santemontreal.qc.ca/en/public/coronavirus-covid-19/situation-of-the-coronavirus-covid-19-in-montreal/#c49292

I have downloaded all weekly reports since Nov 24th. Not sure if they were available earlier than that.

mschoettle commented 3 years ago

Previously, Sante Montreal had a table on the website, see here for example: https://github.com/jeremymoreau/covid19mtl/blob/master/app/data/sources/2020-11-22/data_mtl.html

Unfortunately, we only started saving the HTML of that site around that day. But the Wayback Machine has some previous dates available.

To download stuff from Wayback Machine this tool is very helpful: https://github.com/sangaline/wayback-machine-scraper