You are browsing a tutorial guide for Octoparse's latest version. If you are running an older version of Octoparse, we strongly recommend you upgrade because it is faster, easier and more robust! Download and upgrade here if you haven't already done so!

In this tutorial, we are going to show you how to scrape the product details from Wayfair, an American home improvement retailer commerce company that sells home goods.

For this example, we will use the URL below in order to scrape data such as the product title, description, and price from each product detail page.

https://www.wayfair.com/lighting/sb1/table-lamp-night-lights-c416395-a76645~280587.html

Here are the main steps in this tutorial: [Download task file here]

  1. "Go to Web Page" - open the targeted web page

  2. Create a pagination loop - scrape search results from all pages

  3. Create a "Loop Item" - scrape all the items on each page

  4. Extract data - select data for extraction

  5. Run the task - to get the desired data


1. "Go to Web Page" - open the targeted web page

  • Enter the target URL into the search box at the center of the home screen

  • Click Start to create a new task in Advanced Mode

URL.png

2. Create a pagination loop - scrape search results from all pages

  • Scroll down to the bottom of the page and click the Next button

  • Click Loop click single URL on the Tips panel

pagination.png
  • Set up AJAX as 7-10s

AJAX.png

3. Create a Loop Item - scrape all the items on each page

  • Click on any product title on the page

  • Choose A tag at the bottom of the Tips

Click_A.png
  • Click Select all on the Tips panel

Select_all.png
  • Click Loop click each URL

Loop_click.png

4. Extract data - select data for extraction

Now, Octoparse will open the details page of the first product.

  • Click on the data you need on the page

  • Select Extract data on Tips

EXTRACT.png
  • Rename the fields by double clicking the field

  • Delete unwanted data by clicking

field.png

Your workflow will show below:

final.jpg

5. Run the task - to get the desired data

  • Click the Save button first to save all the settings you have made

  • Then click Run to run your task either locally or cloudly

mceclip8.png
  • Select Run on your device and click Run Now to run the task on your local device

  • Waiting for the task to complete

mceclip9.png

Below is a sample data run from the local. Excel, CSV, HTML, and JSON formats are available for export.

DATA.png
Did this answer your question?