Skip to main content

A Python wrapper for Bing's COVID19 tracker.

Project description

coronatracker

This is a simple tracker for COVID19 which uses the data for https://bing.com/covid and wraps it into usable data for Python programs.

>>> import coronatracker 
>>> ct = coronatracker.CoronaTracker() 
>>> ct.fetch_results()
>>> ct.get_country('United Kingdom')
Country(total_stats=TotalStats(confirmed=1551, deaths=53, recovered=19), id='unitedkingdom', last_updated=datetime.datetime(2020, 3, 16, 23, 0, 12, 91000), areas=[], name='United Kingdom', lat=53.943838, long=-2.550564)

Requirements

  • Requests
  • aiohttp

Install

$ python -m pip install -U coronatracker

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

coronatracker-0.5.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

coronatracker-0.5-py3-none-any.whl (4.0 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