Skip to main content

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


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)

Uploaded Source

Built Distribution

COVID_19_Cases-0.0.3-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page