Giter Club home page Giter Club logo

coronavirus-tracker-cli's Introduction

Coronavirus Tracker CLI

Track The Corona virus stats from your terminal using curl or global command.

Build Status Tweet

Live global stats (provided by fight-covid19/bagdes)

Covid-19 Confirmed Covid-19 Deaths

Screenshot

Preview

Data Sources

Note: Source 2 is the default source now if not mentioned

CURL

# Get data from worldometers api i.e source 2
curl https://corona-stats.online

# Get data from source 1
curl https://corona-stats.online?source=1

# Get data from source 2
curl https://corona-stats.online?source=2

# Filter by country /countryCode or /countryName

curl https://corona-stats.online/US 
curl https://corona-stats.online/italy
curl https://corona-stats.online/uk?source=2
curl https://corona-stats.online/gb?source=1

# Only show top N countries
curl https://corona-stats.online?top=20

# Remove padding and borders from table
curl https://corona-stats.online?minimal=true

# Latest News (Work In Progress)
curl https://corona-stats.online/updates

# Allow emojis (emojis breaks in some terminals)
curl https://corona-stats.online?emojis=true

# Help
curl https://corona-stats.online/help

# Mix up above params (One that I use)
curl 'https://corona-stats.online?top=30&source=2&minimal=true&emojis=true'

API

Add ?format=json at the end of any API to get JSON formatted data.

curl https://corona-stats.online?format=json

Node CLI

Note: NodeJS version 12 recommended. You can download it here.

Install

# Install
npm install coronavirus-tracker-cli -g

# Run command
corona 

# Get source 1 data
corona --source=1
corona -s=1

# Filter by country
corona italy

# Filter top N countries
corona --top=10
corona -t=10

# Minimal Compact Table
corona --minimal
corona -m

# Monocolor / No colors
corona --color=false
corona -c=false

# Show emojis
corona --emojis
corona -e

# Confirmed Cases Graph
corona italy --graph
corona italy -g

ToDos

  • Filter by country to get cases by local states.
  • Move from npm to curl
  • Add daily change.
  • Add graphs
  • Add growth rate column ? (double in X days)
  • Add latest updates from reddit / twitter.
  • Find and add regional data - state, county, city, district level data.

Contributors

 project  : curl-corona
 lines    :     3991
 authors  :
  3342 Sagar Karira             83.7%
  356 XhmikosR                  8.9%
  232 Alexandra Parker          5.8%
   26 Lucas Fernandez Nicolau   0.7%
   13 Daniel S                  0.3%
   10 Shelton Koskie            0.3%
    5 Sabu Siyad                0.1%
    4 Mo'men Tawfik             0.1%
    2 Steven                    0.1%
    1 Greg Myers                0.0%

Other Regional Trackers

Related Projects

Hosting

License

WTFPL

coronavirus-tracker-cli's People

Contributors

sagarkarira avatar xhmikosr avatar mtiifa avatar skoskie avatar xandris avatar ssiyad avatar stevenblack avatar cyberdracula avatar archcorsair avatar divyanshu013 avatar myersg86 avatar lucasfnicolau avatar cinemast avatar styfle avatar ebwinters avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.