1

I want to get the US GDP data from wiki, with the following code, but can't make it.

=importxml("https://en.wikipedia.org/wiki/List_of_countries_by_real_GDP_growth_rate","//*[@id='mw-content-text']/div/table/tbody/tr[137]/td[3]")

it returns "N/A", tried many many times, so frustrated. Can anybody help!?

enter image description here

1 Answer 1

1
=IMPORTHTML("https://en.wikipedia.org/wiki/List_of_countries_by_real_GDP_growth_rate","table")
=IMPORTXML("https://en.wikipedia.org/wiki/List_of_countries_by_real_GDP_growth_rate","//tr[138]/td[@align = 'center']")
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.