In this article, we will collect latest updated information about the coronavirus cases across the world and in a particular country. We will plot graphs to visualise the growth of total number of cases and the total deaths for the last 20 days. The latest data is fetched from Our World in Data.
Python modules required
The requests library is used for making HTTP requests in Python.
pip install requests
matplotlib is a comprehensive library for creating various types of graphs and interactive visualisations in Python.
pip install matplotlib
The data scraped from the website(using requests), is converted to the csv-like format. Then this data is filtered to get the required statistics for the last 20 days and the visualizations are plotted(using matplotlib).
Below is the implementation.
Enter country name... India
Enter country name... Italy
- Python - Details of CoronaVirus cases in various countries
- Python IMDbPY – Getting the countries of the series
- Python IMDbPY – Getting Series Countries as XML
- Corona Virus cases of various countries - Using Python PyQt
- Python - Hilbert Curve using turtle
- Python - Sympy Curve.translate() method
- Graph Plotting in Python | Set 1
- Add QT GUI to Python for plotting graphics
- Graph Plotting in Python | Set 3
- Graph Plotting in Python | Set 2
- ML | Frequent Pattern Growth Algorithm
- Plotting World Map Using Pygal in Python
- 3D Wireframe plotting in Python using Matplotlib
- Plotting Histogram in Python using Matplotlib
- 3D Surface plotting in Python using Matplotlib
- Plotting polar curves in Python
- 3D Scatter Plotting in Python using Matplotlib
- Plotting graph using Seaborn | Python
- 3D Contour Plotting in Python using Matplotlib
- Python | Geographical plotting using plotly
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.