A way to get covid-19 stats using worldometers.info
Project description
Covid-Stats
This package is a way to get Covid-19 statistics using worldometers. It scraps worldometers to get these. Sync-wrapper.
Usage
Global Stats
import covidstats
print(covidstats.Coronavirus().get_stats())
Returns:
Type: Dict
{'cases': '243,876,219', 'deaths': '4,956,039', 'recovered': '220,976,280'}
Country Stats
import covidstats
print(covidstats.Coronavirus().get_stats("India"))
Returns:
Type: List
[{'Country': 'India', 'TotalCases': '34,159,562', 'NewCases': '+790', 'TotalDeaths': '453,742 ', 'NewDeaths': '', 'TotalRecovered': '33,532,126', 'ActiveCases': '+7,676', 'CriticalCases': '173,694'}]
All-Country Stats
import covidstats
print(covidstats.Coronavirus().get_stats("ALL"))
Returns:
Type: List
TOO LONG TO BE SHOWN!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
covid-stats-0.0.1.tar.gz
(2.3 kB
view details)
File details
Details for the file covid-stats-0.0.1.tar.gz
.
File metadata
- Download URL: covid-stats-0.0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 189e48ff9cf7936781439636d1c6fd172c8282a2b00f81c88e447f1776a51ab7 |
|
MD5 | 8ed353a8459a2806480767317e4f5640 |
|
BLAKE2b-256 | 021d57bea7a6fa1ec98b7ee0125bb4af2a04136e662a073392e472e2cf1b7555 |