I am trying to get stock info from Yahoo Finance with the function importxml in google sheets. How can I get to the revenue row?
https://finance.yahoo.com/quote/AMZN/financials?p=AMZN From this page I would like to go down to income statement and get total revenue for the last 3 years.
First I click inspect the page and copy the full xpath. Then I add it to the formula importxml in google sheets:
=IMPORTXML(
"https://finance.yahoo.com/quote/AMZN/financials?p=AMZN";
"/html/body/div[1]/div/div/div[1]/div/div[3]/div[1]/div/div[2]/section/div[3]/div[1]/div/div[2]/div[1]/div[1]/div[2]")
but it says:
#N/A Error - Resource at url not found