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 details)
Built Distribution
File details
Details for the file COVID-19-Cases-0.0.3.tar.gz
.
File metadata
- Download URL: COVID-19-Cases-0.0.3.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dfdf95f979cc72021d9eab43cde781e0a412beee81fd2675974004a3ac59fbc |
|
MD5 | 37ea118d495d4ab002dca59475320f42 |
|
BLAKE2b-256 | 6e2a96d6f6a2c08396813c62bbee238125ef8645a21c209786bd4334bc04355e |
File details
Details for the file COVID_19_Cases-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: COVID_19_Cases-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8fb0fd5315bdfe2de6dedfb20a0655c68d74b34cabca5761fc1fd16ac2c78f1 |
|
MD5 | 746861a97e2ad0137e64a8f58a716367 |
|
BLAKE2b-256 | c14f7aebf5b70c6065986c850d41b1a3e70464c7561fbb14e75e16e70ebab409 |