Answer the question
In order to leave comments, you need to log in
How to use the importxml formula to parse the price of a product?
Good afternoon. I have a list of several hundred pages. They are all commercial with the same structure, there are no breeders.
The importxml formula should unload the price from, for example, this page
.
My options for x-path queries, which, unfortunately, do not work out:
//*[@id="329172937"]/div/div[2]/div[1]/strong
//strong[@class='primaryPriceCountryOfSale']
//div[@class='vehiclePrice']
//div[@class='vehicleMainInfo right']/div[@class='vehiclePrice
//div[@class='vehicleMainInfo right']/div[@class='vehiclePrice']/strong
//div[@class='vehicleMainInfo right']/div[@class='vehiclePrice']/strong/text()
//strong[@class='primaryPriceCountryOfSale']/text()
Answer the question
In order to leave comments, you need to log in
It's not the request, but the fact that the site does not just allow itself to be parsed.
Here is what it gives to Google upon request //*
//strong[@class="primaryPriceCountryOfSale"][1]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question