Skip to content

Extract COVID-19 CSV from the oficial Brazilian Federal Government site

License

Notifications You must be signed in to change notification settings

gpcarmo/br-covid19CSVExtract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script Test

br-covid19CSVExtract

😩 the website now provides a MS Excel file instead of a CSV file.

Extract CSV file from the oficial Brazilian Convid-19 Website (https://covid.saude.gov.br)

Read this in other languages: English, Português.

The Brazililan official health authority provides a panel for all the cases of Covid19 in Brazil by states. You can find the download button to the actual CSV file.

If you thought about automate this process then you are in the right place.

To download the latest CSV you can execute the following script:

/bin/bash getCovid19CSVData.sh

ATTENTION: The "CSV" uses ";" as the separator

Examples
  1. Getting only the data from Rio de Janeiro state:
/bin/bash getCovid19CSVData.sh | sed '1p/;RJ;/!d'

How to contribute

If Shell script is not what are you looking for and you think you can contribute using any other programming language, feel free to use the same strategy. I can also add a reference to your project.

About

Extract COVID-19 CSV from the oficial Brazilian Federal Government site

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages