This repository is used to process data from different sources to feed COVID-19 en tu comuna.
It started using data uploaded to MinCiencia/Datos-COVID19 but it was changed to a process where official PDF reports are parsed to get all required data.
We strongly recommend using the production branch of this repo for data fetching purposes. That branch will always be available in a reliable state.
If you want to fetch raw JSON data, you should always be fetching the following URL:
https://raw.githubusercontent.com/javierlopeza/datos-coronavirus-chile/production/data/chile.json
The main output of this repo is chile.json
. It contains all relevant information to feed COVID-19 en tu comuna. It is also structured in a way is easy for programmers to navigate.
country > regions > communes
A minified version of this file is also published along with it: chile-minified.json
.
These are the files that keep all records and that are used to build chile.json
. File names are kept the same as Datos-COVID19.
-
CasosTotalesCumulativo.csv
: cummulative confirmed cases by region. -
FallecidosCumulativo.csv
: cummulative deaths by region. -
TotalesNacionales.csv
: cummulative country totals. -
CasosActivosPorComuna.csv
: total active cases by commune. -
Quarantines.csv
: current active quarantines by commune.
It is in charge of collecting all the information spread across CSV files to generate a single /data/chile.json
file that is served to COVID-19 en tu comuna.
It also generates a minified version named /data/chile-minified.json
.
This is a program built to parse a PDF file uploaded to COVID-19 government website. It parses every table in the document, scrapping total coronavirus active cases for each commune and region.
This is a program built to parse a PDF file uploaded to COVID-19 government website. It parses the first tables in the document, scrapping coronavirus data about Chile and about each region.
This is a program built to scrap daily new info about COVID-19 cases in the country and for each region. The source of the data is MINSAL official website.
NOTE: as of May 20, we are not using this scraper, we are using Reporte Diario Parser instead.