简体   繁体   English

无法使用 Google 表格从 Yahoo Finance 导入 XML 自由现金流

[英]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.我已经成功地使用 IMPORTXML 将 Google 表格用于企业价值和未来 5 年(每年)的增长估计,但我无法获得自由现金流。 I have blocked JavaScript to rule out if that is the issue.我已经阻止了 JavaScript 以排除这是否是问题所在。 If someone could help me it would be great?如果有人可以帮助我,那就太好了? Below are the IMPORTXML methods I have been successful and unsuccessful with.以下是我成功和失败的 IMPORTXML 方法。

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):未来 5 年的增长预测(每年):

=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.遗憾的是,链接是 javascript 生成的。 And IMPORT functions don't work on that.并且IMPORT函数对此不起作用。

Testing the link:测试链接:

输出

Alternative:选择:

  • You can try to find an alternative non-javascript generated site that would provide the same data.您可以尝试找到一个替代的非 javascript 生成的站点,该站点将提供相同的数据。 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).虽然我无法从任何其他网站找到完全相同的数据,但这个网站似乎很相似,尤其是在运营现金流方面(除了 TTM 值)。 You might want to check that.你可能想检查一下。

Reference:参考:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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