Web Scraping Exercise: Reading the Data
Explore web scraping techniques by extracting tables from a Wikipedia page about the world's largest banks. Learn to send HTTP requests, parse HTML responses with BeautifulSoup, and store the extracted data in pandas DataFrames, preparing it for further analysis.
We'll cover the following...
We'll cover the following...
Time to practice and experiment with web scraping. In this exercise, you’ll extract data from a Wikipedia page about the world’s largest banks.
The web page contains two tables ranking the largest banks in the world. The first table ranks banks by total assets.
The second table ranks countries by the number of banks per country.
Your task is to scrape the two tables, store them in a pandas DataFrame, and export them as a CSV file for ...