I have been trying to scrape from Flipkart.com and I am not satisfied with the output I am seeing.


1 comment

  • Scarlett

    The cause of the problem is that you didn't use the right XPath for locating the information. That's why some price data and other information are missing.

    However, it's not the only reason, the other one is that the website uses different XPath to store the information you so it's recommended to use different XPath for locating one element.

    For example, the XPath for this type of price presentation is "//*[@id="container"]/div/div[3]/div[2]/div[1]/div[2]/div[2]/div/div[3]/div[1]/div/div[1]/div[1]".

    This one is "//*[@id="container"]/div/div[3]/div[2]/div[1]/div[2]/div[2]/div/div[3]/div[1]/div/div[1]". The XPath is different.

    So you need to create a field in Octoparse for the price shown in the first form. When Octoparse runs into some price format, it'll be able to collect the data. If you want to store them in a data field, please use our branch and trigger feature. 
    Condition-based scraping using branch judgement   

    Comment actions Permalink

Please sign in to leave a comment.