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 hashes)