Corona Tracker is an opensource python library to get information of a particular country about Corona Virus. Using webscrapping technology I implemented it to use in various projects. There are 24 methods available to get information.
- 3rd Party Library Used (For Library): urllib , json
- 3rd Party Library Used (For GUI) : PyQt5
The methods are listed here -
- updated
- country
- countryInfo
- cases
- todayCases
- deaths
- todayDeaths
- recovered
- todayRecovered
- active
- critical
- casesPerOneMillion
- deathsPerOneMillion
- tests
- testsPerOneMillion
- population
- continent
- oneCasePerPeople
- oneDeathPerPeople
- oneTestPerPeople
- undefined
- activePerOneMillion
- recoveredPerOneMillion
- criticalPerOneMillion
from Corona_Tracker import CoronaTracker #importing the library
Corona =CoronaTracker('Bangladesh') #Give contry name as parameter
Corona.loadData() #Calling the loadData function to get all the information
TodayCase = Corona.todayCases () #Getting today's corona virus case number from the loaded data.