Parsing HTML with Python in a Jupyter Notebook

  1. In chapter-3-workbook.ipynb file, scroll to the top of Subtopic Parsing HTML with Python.

In this section, we'll scrape the central bank interest rates for each country, as reported by Wikipedia. Before diving into the code, let's first open up the web page containing this data.

  1. Open up the https://en.wikipedia.org/wiki/List_of_countries_by_ central_bank_interest_rates URL in a web browser. Use Chrome, if possible, as later in this section we'll show you how to view and search the HTML with Chrome's developer tools.

Looking at the page, we see very little content other than a big list of countries and their interest rates. This is the table we'll be scraping.

  1. Return to the Jupyter Notebook ...

Get Applied Deep Learning with Python now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.