A Guide to Scraping HTML Tables with Pandas and BeautifulSoupby@otavioss
3,015 reads
3,015 reads

A Guide to Scraping HTML Tables with Pandas and BeautifulSoup

by Otávio Simões 7mMarch 2nd, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

It’s very common to run into HTML tables while scraping a webpage, and without the right approach, it can be a little tricky to extract useful, consistent data from them. In this article, you’ll see how to perform a quick, efficient scraping of these elements with two main different approaches: using only the Pandas library and using the traditional scraping library BeautifulSoup.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - A Guide to Scraping HTML Tables with Pandas and BeautifulSoup
Otávio Simões  HackerNoon profile picture
Otávio Simões

Otávio Simões

@otavioss

Economist and data scientist

About @otavioss
LEARN MORE ABOUT @OTAVIOSS'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Otávio Simões  HackerNoon profile picture
Otávio Simões @otavioss
Economist and data scientist

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite