I am trying to import the 5 product image from the following link
https://www.zara.com/tr/en/full-length-trousers-p07385169.html?v1=88239943&v2=1471790
When I tried importing the src attribute from the following Xpath
=IMPORTXML(A1,"//img[@class='media-image__image media__wrapper--media']//@src")
It returned an image which was diffrent from the product image, Although it is not the same image that is shown in the inspect element target in chrome.
I found this class that has the 5 images in a row seperated by coma
//ul[@class="product-detail-images__images"]/li[5]//source
the problem is that this elements contains two attributes, the first one is called sizes which when scraped it returns its value normally and another attribute in which the image links are stored under media srcset which doesn't return when I try to import it using
=IMPORTXML(A1,"//ul[@class="product-detail-images__images"]/li[5]//source/@media srcset"
or even
=IMPORTXML(A1,"//ul[@class='product-detail-images__images']/li[5]//source/@*")this returns only the first attribute!
My target is to import all the product images from the page. is there is any fixes that I must make to my import statement, or any other method to import the images using importxml.
Deep Thanks In Advance
