I am trying to extract a score from the following URLs: shows a score of "10" displayed in an Octagon image, while has a score of "5".
Upon inspecting the elements, I found the score represented as:
<text y="100" dy="0.32em"><tspan x="100" text-anchor="middle">10</tspan></text>
I have been using Google Docs and the Importxml function with various Xpaths, but all are returning #N/A.
I have tried different Xpath variations such as:
//tspan
//tspan[1]
//text/tspan[1]
//text[1]/tspan[1]
//svg/text[1]/tspan[1]
I even attempted using the full xpath:
/html/body/div[1]/div/div/main/div/div/article/div[2]/div/main/div[1]/div[2]/section[1]/div[1]/div[1]/div/svg/text/tspan
Can anyone provide guidance on where I may be making a mistake?
The formula I am using in Google Docs is:
=IMPORTXML(A1,A2)
Where A1 is , and A2 is one of the Xpaths mentioned above