eBay is a multinational e-commerce company located in the U.S., facilitating consumer-to-consumer and business-to-consumer sales through its website. It is one of the most famous and used e-commerce platforms worldwide.
This tutorial will show you how to scrape images' URLs from the eBay product detail page.
To follow through, you may want to use the URL below:
The main steps are shown in the menu on the right, and you can download the sample task file here.
1. Create a Go to Web Page - to open the target website
Enter the target URL on the homepage of Octoparse and click Start
2. Create a Pagination Loop - to scrape data from multiple listing pages
Scroll to the bottom of the webpage
Click the Next page button (->)
Click Loop click on the Tips panel
Set AJAX timeout : 7-10s recommended
Note: If you want to learn more about AJAX and how Octoparse handles it, please check it out here.
3. Create a Loop Item - to loop click on each product link and enter the detail page
Click on the name of the first product
Click Select all similar elements on the Tips
Choose Loop click each element
Click No
4. Extract data - to extract the images' URLs
Click on the first image on the sidebar
Click Select all similar elements on the Tips
Click Image URL
Note: This Merge field data feature helps you get all the images of one product into one cell. If you want to scrape them into different rows, you don't need to tick it. To scrape images into different columns, you may refer to Capture images from a carousel
The final workflow should look like this:
5. Run the task - to get your target data
Click Save on the upper right to save your task
Click Run next to it and wait for a Run Task window to pop up
Select Standard Mode under the Run on your device to run the task on your local device
Wait for the task to complete
Here is the sample output from a local run: