colinc86 / covid-19

Downloads updated data from https://covid.ourworldindata.org/data/full_data.csv.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

COVID-19 Data Utility

Downloads updated data from https://covid.ourworldindata.org/data/full_data.csv.

Installing

Make sure you have Go installed from either golang.org or by running (macOS):

brew install go

Clone this repo and run the install script:

git clone git@github.com:colinc86/covid-19.git
cd covid-19
./install.sh

Updating data

Run the command

covid19 update data

or add the -u flag to commands:

covid19 -u list data

Data is saved to /usr/local/var/covid_full_data.csv.

Listing data

List data by location

covid19 list data

List world data

covid19 list data -w

List data by location and sort by total cases (or new cases/deaths and total deaths)

covid19 list data --sortBy totalCases

List data from a location

covid19 list data -l [location]

Graphs

Graph world data by total cases

covid19 graph data

Graph location data by total cases

covid19 graph data -l [location]

Graph world data by new deaths

covid19 graph data --value newDeaths

About

Downloads updated data from https://covid.ourworldindata.org/data/full_data.csv.


Languages

Language:Go 99.4%Language:Shell 0.6%