Office Depot is a leading American office supply retailer owned by The ODP Corporation, which also owns brands OfficeMax and Grand & Toy. The company has over 1,400 stores, and over 38,000 associates, which generates over $11 billion dollars a year. Their website hosts a variety of products, from office chairs, desks, stationery products, school supplies and much more. In this blog post, we will show you how to scrape Office Depot, with ParseHub, our free web scraping tool.

To follow along with this tutorial, download and register to ParseHub for free.

Let’s begin scraping Office Depot!

Scraping Products

  1. Firstly, open the ParseHub application and log in.
  2. Click the blue “New Project” button to start your project.
  3. Enter the Office Depot URL you wish to scrape from, we will scrape office chairs with this URL: https://www.officedepot.com/a/browse/office-chairs/N=5+593067/https://www.officedepot.com/a/browse/office-chairs/N=5+593067/
  4. Once the page loads, click the first chair’s name and description to select it.
  5. The rest of the products will now be highlighted in yellow. Click the next one.
  6. Now all 24 products on the first page will be extracted!
  7. Rename this selection to “product” on the left pane, where you see “selection1”.

Scraping Additional Data

When scraping additional data respective to each product, we need to use ParseHub’s Relative Select tool:

  1. To scrape the respective prices, start by clicking the PLUS(+) button next to your first selection.
  2. Choose “Relative Select” and click the first product’s name to select it.
  3. Point the arrow to the product’s price to connect it.
  4. All prices should now be extracted for each product!
  5. Rename this selection to “price” on the left pane.
  6. Redo steps 1 to 5 for other data such as the item number or the reviews!

Pagination

If we ran the scrape right now, ParseHub would only scrape 24 products on the first page. To scrape multiple pages we need to use ParseHub’s pagination.

  1. Begin by scrolling down the page until you see the page navigation bar.
  2. Click the PLUS(+) button next to your “page” selection at the top of the left pane.
  3. Choose “Select” and click the “Next” link.
  4. Rename this selection from “selection1” to “pagination”.
  5. Click the expand drop-down icon and delete the two extractions.
  6. Click the PLUS(+) button next to your pagination selection and choose “Click”.
  7. Choose “Yes” on the popup to confirm this is a next page button.
  8. Choose the number of additional pages you wish to scrape, we will choose 2 which means 3 pages of scraped data in total!

Start Scraping

At the time of this blog post, there were no blocks when scraping Office Depot, which means you could probably scrape large amounts of data without blocks! However, if you do run into blocks or empty results, you will need to enable ParseHub’s IP Rotation.

To begin your scrape, click the green “Get Data” button on the left pane. You can now choose to Run your project, Schedule it, or even Test Run if you run into any issues. If you have issues scraping and cannot solve it with a test run, feel free to reach out to our live chat support!

If you followed the steps correctly, your data export should look something like this:

If you enjoyed this guide on scraping Office Depot, here is a guide on scraping any e-commerce website!

Happy Scraping!