Skip to content

Darwinnn/jhu_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What it is

As I was in self-isolation, I decided to learn Crystal language

So I built this parser, which takes data from the John Hopkins University github repo, parses the csv files and exposes a JSON API

The app is deployed to Heroku, and you can access it here: https://jhu-parser.herokuapp.com/

Build

shards build

Run

bin/main 

Usage

App accepts GET requests on port 3000 and support these routes:

  1. GET / - return data for all countries
  2. GET /total - return total stats
  3. GET /:country - return per country stats

Data structure

  • total - represents latest data
  • diff - increase in the last 24hrs (today-yesterday)
{
    "recovered": {
        "total": 246152,
        "diff": 20356
    },
    "confirmed": {
        "total": 1197405,
        "diff": 101488
    },
    "dead": {
        "total": 64606,
        "diff": 5819
    }
}

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy