A python script that generates latest data set of COVID-19 cases around the globe.
Project description
COVID-19 Cases
A python script that generates latest data set of COVID-19 cases around the globe.
Setup
pip install COVID-19-Cases
Usage
Import the module.
import covid19cases as covid
Fetching of data
Get the latest cases around the globe.
get_global_cases()
Get the latest cases of all affected countries if there's no parameter passed to the method. Else, it will fetch data of specific country.
get_country_cases()
get_country_cases("Philippines")
Get the latest cases of all affected continents if there's no parameter passed to the method. Else, it will fetch data of specific continent.
get_continent_cases()
get_continent_cases("Asia")
Source
I get the data on this site https://www.worldometers.info/coronavirus/ via Web scraping.
Note
The keys or format of the dictionary will depend on the website where I scraped the data so it will change from time to time.
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-19-Cases-0.0.3.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for COVID_19_Cases-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8fb0fd5315bdfe2de6dedfb20a0655c68d74b34cabca5761fc1fd16ac2c78f1 |
|
MD5 | 746861a97e2ad0137e64a8f58a716367 |
|
BLAKE2b-256 | c14f7aebf5b70c6065986c850d41b1a3e70464c7561fbb14e75e16e70ebab409 |