I'm trying to use the google-sheets IMPORTHTML()
function to get the text inside of a <span>
from a website.
What xpath
argument do I need, in order to produce the output: Score 50
?
<div class="section">
<div class="left">
<div id="search" class="input">
<span class="select-box">Test Section</span>
<input type="text" id="txtSymbol" class="select-box">
<input type="button" id="btnHistory" class="input-button">
</div>
<span id="score" class="score">Score 50 </span>
</div>
</div>
These are some of the xpath
values I've already tried using, but none of them have worked:
//span[@class='score']/@content
I get#N/A
//div[@class='search']/span[@class='score']/@content
I get#N/A
//div[@class='search']/span[1]/@content
I get#N/A