October 2019
Beginner to intermediate
674 pages
16h 43m
English
Python provides different libraries for scraping:
In this section, we'll see how to scrape data by leveraging the power of pandas and BeautifulSoup. To start with, pandas is sufficient to extract structured data from a website without the help of BeautifulSoup. In the earlier sections, we learned about loading data from different formats (.csv, .xlsx, and .xls) in Python. Similar to these, pandas has a separate function for loading tabular data from an HTML file. To read an HTML file, a pandas DataFrame looks for a tag. That tag is called a <td> </td> tag. This tag is used to define a table in HTML.
pandas uses read_html() to read the HTML document. This function loads all the structured ...
Read now
Unlock full access