Jabong was an Indian fashion, and lifestyle e-commerce portal acquired by Flipkart through its unit Myntra and later shut down to shift focus completely on Myntra. So don't panic if you find the website automatically skipping to myntra.com. :)
This tutorial will introduce how to scrape product information from Jabong.
To follow through the tutorial, you may want to use the URL below:
Here are the main steps of this tutorial:
- Create a Go to Web Page - to open the target website
- Auto-detect the webpage - to create a workflow
- Set backup XPath for the data field(s) - to locate the field(s) accurately
- Run the task - to get the desired data
1. Create a Go to Web Page - to open the target website
- Enter the target URL into the search bar on the home screen and click Start
2. Auto-detect the webpage - to create a workflow
Octoparse's auto-detection function can help you quickly create a workflow according to the target website's design.
- Click Auto-detect web page data in Tips and wait for the detection to complete
- Check the data fields in Data Preview and delete unwanted data or rename them if needed
- Click Create workflow
Now, you will see a workflow created like the one below:
3. Set backup XPath for the data field(s) - to locate the field(s) accurately
Sometimes, there is more than one XPath for a specific data field; thus, it is essential to set up an alternative XPath for such field(s) to extract the data more precisely.
In this case, the data field Original_price needs a backup XPath as the location of this field may change according to whether the product has a discount.
- Click next to the data field to change its settings
- Choose Customize XPath
- Tick Try alternate XPath
- Choose Relative XPath to the Loop Item
- Input the XPath as: //div[@class='product-price']/span
- Click Apply to save the change
4. Run the task - to get the desired 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 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: