main
Version, currently master branch1 version
- master branchlatestApr 5, 2020
github.com/Darwinnn/jhu_parser
JHU Covid-19 API https://jhu-parser.herokuapp.com/
2 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
main:
github: Darwinnn/jhu_parser
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.33.0- License
- MIT
- Author
- Darwin
- Target
mainfrom src/main.cr
Dependencies
Runtime Dependencies
- kemal*github: kemalcr/kemal
README
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:
GET /- return data for all countriesGET /total- return total statsGET /:country- return per country stats
Data structure
total- represents latest datadiff- increase in the last 24hrs (today-yesterday)
{
"recovered": {
"total": 246152,
"diff": 20356
},
"confirmed": {
"total": 1197405,
"diff": 101488
},
"dead": {
"total": 64606,
"diff": 5819
}
}
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Apr 5, 2020
- Crystal
0.33.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/Darwinnn/jhu_parser
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1