The Brick is one of Canada’s leading home, furniture, mattress and appliance retailers. Founded in 1971 by three brothers in Alberta, The Brick has grown to over 136 retail stores spanning all provinces except Nunavut. It has since been acquired in 2012 by Leon’s, its current parent company for $700 million dollars. In this guide, we will show you how to scrape The Brick and their home products with our free web scraping tool, ParseHub.

In order to follow along, register and sign up to ParseHub for free.

Let’s scrape The Brick!

Scraping Products

  1. Begin by opening ParseHub on your PC, Mac or Linux system.
  2. Create a new project by clicking the “New Project” button
  3. Enter the URL you wish to scrape from, we will scrape accent chairs using this URL:
  4. Click the first product’s name to extract it. The rest of the product names will turn yellow.
  5. Now click the next chair’s name to train the algorithm.
  6. All 48 products on the first page will now be extracted!
  7. Rename the selection on the left to “chair”.

Scraping Prices

When scraping relative data for each extraction, we need to use the Relative Select tool:

  1. Firstly, click the PLUS(+) icon next to the “chair” selection.
  2. Choose “Relative Select” and click the first product’s name again.
  3. An arrow will appear, click the first product’s price to extract it relatively.
  4. All prices will now be extracted!
  5. Rename this selection on the left to “price”.

Note: If you want to remove the “From” text before the price, you will need to add this simple regular expression to the price extraction: ([0-9,.]+)

Scraping Multiple Pages

Running the scrape at this point will only get us 48 rows of data. To scrape multiple pages, we need to use ParseHub’s pagination.

  1. Firstly, scroll past all the products until you see the next page button.
  2. Click the PLUS(+) button next to the “page” selection.
  3. Choose “Select” and click the next page button to extract it.
  4. Rename the selection to “pagination”.
  5. Expand the data and delete the two extractions.
  6. Click the PLUS(+) icon next to your “pagination” selection and choose “Click”.
  7. Choose “Yes” as this is a next page button.
  8. Finally, choose the number of additional pages you wish to scrape, we will choose 2, which is 3 pages in total, and should get us 144 rows of data!

Begin Scraping

Now that you have your selections, relative select and pagination set up, you are ready to scrape! Firstly, click the “Get Data” button on the left pane, or you can also click the settings drop-down at the top to click “Get Data”. You may now choose to Test, Run or Schedule your scrape. You can run your scrape first, then choose to Test if you run into any issues. Scheduling is useful when you require up-to-date data.

In our example, we chose Run and got three pages of results:

If you need help with scraping The Brick, or any website, feel free to reach out to our amazing support team!

Happy Scraping! 🛋️