0

The code I'm trying to access is the following.

<div class="row relative">
    <div class="col-md-6">
        <div class="head-data-preview"><span class="value value--price">215.23</span> <span class="label">Cpu Amd Ryzen 5 3600XT Box [100-100000281BOX]</span></div>
    </div>
</div>

What I tried is :

//div[@class='head-data-preview']//span[@itemprop='value value--price']/@content
//div[@class='row relative']//span[@itemprop='value value--price']/@content
//div[@class='row relative']//div[@class='head-data-preview']//span[@itemprop='value value--price']/@content

AlexPad
  • 25
  • 5
  • Why `@itemprop='value value--price'`? Maybe `@class='value value--price'`? – JaSON Nov 06 '20 at 09:49
  • What's the website? If the data is loaded by JS then it's not retrievable with IMPORTXML. See [here](https://stackoverflow.com/a/61475850/11551468). – Rafa Guillermo Nov 06 '20 at 09:54

0 Answers0