1
votes

I'm trying to target a price on a website using an importXML from Google Sheets. The code I'm targeting looks like:

  <span class="new_price" id="final_price">£29.99</span>

Becuase its inside a class 'new_price' my import isnt working:

  =importXml("http://www.hardware-ironmongers.com/details.aspx?code=7751913"; "//span[@id='final_price']")

Any ideas how to target an ID inside a class?

Cheers

1
Edited your tags so the XML experts can edit what I think is called the 'xpath' in your function. - danielpiestrak

1 Answers

0
votes