Python Script to Track Coronavirus in Your Country

covid is python package to track the Coronavirus spread in your country.
It requires Python 3.6 or later.
To install this package:

pip install covid

Following is a sample script to use this package to track coronavirus numbers for specific country ( here I use Egypt with id=71 as an example):

Following is a sample output for today’s numbers:

If you don’t know the ID of your countries, you can use the following command to retrieve list of all countries information (id & name):

countries = covid.list_countries()
print(countries)

For more information about this package:
https://pypi.org/project/covid/

Thanks
Ahmed

Leave a comment