简体   繁体   中英

Unable to IMPORTXML Free Cash Flow from Yahoo Finance using Google Sheets

I've been successful using IMPORTXML to pull into Google Sheets for Enterprise Value and Growth Estimates Next 5 years (per annum) but I'm unable to pull in Free Cash Flow. I have blocked JavaScript to rule out if that is the issue. If someone could help me it would be great? Below are the IMPORTXML methods I have been successful and unsuccessful with.

Enterprise Value:

=IMPORTXML("https://au.finance.yahoo.com/quote/AAPL/key-statistics?p=AAPL","//*[@id='Col1-0-KeyStatistics-Proxy']/section/div[2]/div[1]/div/div/div/div/table/tbody/tr[2]/td[2]")

Growth Estimates Next 5 years (per annum):

=IMPORTXML("https://au.finance.yahoo.com/quote/AAPL/analysis?p=AAPL","//*[@id='Col1-0-AnalystLeafPage-Proxy']/section/table[6]/tbody/tr[5]/td[2]")

Free Cash Flow:

=IMPORTXML("https://au.finance.yahoo.com/quote/AAPL/cash-flow?p=AAPL","//*[@id='Col1-1-Financials Proxy']/section/div[3]/div[1]/div/div[2]/div[12]/div[1]/div[2]/span")`

Sad to say that the link is javascript generated. And IMPORT functions don't work on that.

Testing the link:

输出

Alternative:

  • You can try to find an alternative non-javascript generated site that would provide the same data. See similar situation . Although I can't find exact same data from any other sites, this site seems similar especially on the operating cash flow (aside from TTM values). You might want to check that.

Reference:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM