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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s