Web Scraping is the most important concept of data collection. In Python, BeautfiulSoupSelenium and **XPath **are the most important tools that can be used to accomplish the task of web scrapping.

In this article we will focus on BeautifulSoup and how to use it to scrap COVID-19 data from Worldometer website. The data on the site is in form of a table.

Definition of Concepts

Take a look at the following image then we can go ahead and define the components of an HTML table (I know the data doesn’t make sense but the most consequential is to understand the concept of rows and columns in HTML).

From above image we can deduce the following:

The <table> tag defines an HTML table.

An HTML table consists of one <table> element and one or more , , and elements.

The element defines a table row, the element defines a table header, and the element defines a table cell.

An HTML table may also include , , , , and elements.

#web-scraping #beautifulsoup #covid19 #python

Web Scraping COVID-19 Data Using BeautifulSoup in Python
3.15 GEEK