Getting the selling price from Barnes and Noble

We have to use the same strategy we used for Amazon to find the selling price on the Barnes and Noble website. For this, we need to perform the following steps:

  1. Find the URL for each ISBN
  2. Find a way to scrape the selling price

The URL that can be used for Barnes and Noble is http://www.barnesandnoble.com/s/ISBN, where ISBN is the ISBN value, for example, http://www.barnesandnoble.com/s/1904811590).

Now, we have to find the selling price from the page. The page at Barnes and Noble will have the selling price listed in a div tag with the price class (highlighted) in the following screenshot:

Getting the selling price from Barnes and Noble

We can find the ...

Get Getting Started with Beautiful Soup 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.