https://www.google.com/finance/quote/TSLA:NASDAQ
This is where I am trying to get the code. I am trying to get the Net Income Field which for Tesla is 1.85B.
BTW I am trying to get the data in a google sheet.
I am using this:
=IMPORTXML("https://www.google.com/finance/quote/TSLA:NASDAQ","//table[contains(@class, 'slpEwd')]//tr[contains(@class,'roXhBd')]//td[contains(@class,'QXDnM')]")
But it returns all the values in the column. I just want that 1 value. What needs to change?
Any help will be appreciated.
Here's one approach you may test out: