![](/img/trans.png)
[英]Im trying to use importxml in google sheets to get a stock price from google finance, struggling with xml elements and syntax
[英]Unable to IMPORTXML Free Cash Flow from Yahoo Finance using Google Sheets
我已经成功地使用 IMPORTXML 将 Google 表格用于企业价值和未来 5 年(每年)的增长估计,但我无法获得自由现金流。 我已经阻止了 JavaScript 以排除这是否是问题所在。 如果有人可以帮助我,那就太好了? 以下是我成功和失败的 IMPORTXML 方法。
企业价值:
=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]")
未来 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]")
自由现金流:
=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")`
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.