HTML elements and DOM navigation

We will be using http://books.toscrape.com/ from http://toscrape.com/. toscrape provides resources related to web scraping for beginners and developers to learn and implement Scraper.

Let's open the http://books.toscrape.com URL using the web browser, Google Chrome, as shown here:

Inspect view of books.toscrape.com

As the page content is successfully loaded, we can load DevTools with a right-click on the page and press the option Inspect or by pressing Ctrl + Shift + I. If accessing through the Chrome menu, click More Tools and Developer Tools. The browser should look similar to the content in the preceding ...

Get Hands-On Web Scraping with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.