0

So, in these covid19-infested days I want to update our digital signage with the current situation. Want to use google sheets and IMPORTXML to fetch data from a website that is frequently updated with the statistics for sweden.

The trouble is that I am returning empty results from IMPORTXML...

https://platz.se/coronavirus/

the XPath i am using to get the five numbers is:

//*[@id="root"]/div/header/div[1]/div[1]/span //*[@id="root"]/div/header/div[1]/div[2]/span //*[@id="root"]/div/header/div[2]/div[1]/span //*[@id="root"]/div/header/div[2]/div[2]/span //*[@id="root"]/div/header/div[2]/div[1]/div[2]

So my syntax looks like this:

=IMPORTXML(https://platz.se/coronavirus/,//*[@id="root"]/div/header/div[1]/div[1]/span)

... .... .....

It returns "Error, Imported content is empty".

I suck, please halp

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.