Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oren0e/covidstatsscraper
Command-line interface to scrape COVID-19 stats for different countries always including Israel
https://github.com/oren0e/covidstatsscraper
Last synced: 26 days ago
JSON representation
Command-line interface to scrape COVID-19 stats for different countries always including Israel
- Host: GitHub
- URL: https://github.com/oren0e/covidstatsscraper
- Owner: oren0e
- License: gpl-3.0
- Created: 2020-04-05T15:10:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T22:43:00.000Z (over 1 year ago)
- Last Synced: 2024-10-21T18:39:14.868Z (2 months ago)
- Language: Python
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# COVID-19 (corona-virus) statistics scraper
## Overview
This is a command line tool to get statistics in a form of a table with the top 10 countries (according to the statistic chosen) along with Israel (to see how it compares with the top 10). The numbers are being updated daily and are taken from John's Hopkins University data - https://coronavirus.jhu.edu/data/mortality.You can use this script to setup a cronjob and get a daily report to console.
## Installation
**Note: These instructions work for UNIX-based operating systems and had been tested on MacOS with Python 3.7.3.**
1. Clone the repo to some folder
2. Open the terminal in the folder you've cloned the repo to and give execution permissions to `setup.sh` (`chmod +x setup.sh`)
3. Run `./setup.sh`.## Usage
`$ covids variable [--ascending] [--csv] path`.
For example, to see the top 10 countries with the highest confirmed cases (along with Israel being the 11th country with its respective rank) type: `covids confirmed`.If you want to save the output with `confirmed` to `myfile.csv` instead of printing to console, type:
`$ covids confirmed -csv /path/to/myfile.csv`For help, open the terminal and type `covids -h` to get the list of commands and usage.
## TODO
- Make it work on Windows.
- Improve response speed when issuing the command with the help flag only (`covids -h`)
- Add the option to choose other country (instead of Israel) to be compared to the top 10 countries