Skip to main content

Web Scraper for Czechia COVID19 data.

Project description

Web Scraper of COVID-19 data for Czechia

Python package covid19czechia provides access to COVID-19 data of Czechia.

The data is scraped from

  • Ministry of Health, Czech Republic
  • Czech Statistical Office

Setup and usage

Install from pip with

pip install covid19czechia

Importing module is done such as

import covid19czechia as CZ

x = CZ.covid_deaths()

Package is regularly updated. Update with

pip install --upgrade covid19czechia

COVID-19 Deaths

Get Covid-19 deaths in Czechia (weekly counts, by gender and age group)

x = CZ.covid_deaths()

The function returns Pandas dataframe. It can be stored to csv file with

x.to_csv("filename.csv", header = True, index = False)

Administrative unit setting

Optional parameter level sets granularity of administrative units the deaths are computed in.

Defaultly (level = 1) the deaths are taken from the whole Czechia.

x = CZ.covid_deaths(level = 1) # same as no argument given (above)

Settings level = 2 corresponds with deaths in regions (kraje, NUTS 3).

x = CZ.covid_deaths(level = 2)

Setting level = 3 means deaths per district (okresy, LAU 1).

x = CZ.covid_deaths(level = 3)

Read more about administrative units of Czech Republic here.

Total weekly deaths

For total deaths check my another package eurostat_deaths.

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

covid19czechia-0.2.4.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

covid19czechia-0.2.4-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

Details for the file covid19czechia-0.2.4.tar.gz.

File metadata

  • Download URL: covid19czechia-0.2.4.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for covid19czechia-0.2.4.tar.gz
Algorithm Hash digest
SHA256 cad5b85589a7ff26b580949ed7bc8d524487776f783b0949af4a83fcbb5252f4
MD5 2364e9500b7c2a994d79eafb65e37f5d
BLAKE2b-256 8b2d009dde5b5d52206c3eab993a065d1cc64e6b3e2487b12b9b88817e3e6c27

See more details on using hashes here.

File details

Details for the file covid19czechia-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: covid19czechia-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 24.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

File hashes

Hashes for covid19czechia-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 499220d3306d8855bfea83bd95bbe7bca7c973e7d3aebfcd5825981e1ccf95f9
MD5 2da32c1e6f63cad1c8be865b2fdef950
BLAKE2b-256 a375f24ea0c34b24a9074e2dfb35333455a3a0f7e12a39796d0b318431f66681

See more details on using hashes here.

Supported by

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