简体   繁体   English

IMPORTXML 未从雅虎财经统计页面提取数据

[英]IMPORTXML Not Pulling Data From Yahoo Finance Statistics Page

I'm trying to pull stock data from Yahoo Finance, but am unable to pull any data from the Statistics page.我正在尝试从雅虎财经中提取股票数据,但无法从统计页面中提取任何数据。 This code works fine when pulling from the Summary page, but doesn't seem to work here.从“摘要”页面拉出时,此代码工作正常,但在这里似乎不起作用。

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

Any help would be appreciated.任何帮助,将不胜感激。 Thanks!谢谢!

if its not JavaScript controled you can get it like this:如果它不是 JavaScript 控制的,你可以像这样得到它:

=IMPORTXML("https://finance.yahoo.com/quote/AMD/key-statistics?p=AMD", "//tr")

在此处输入图像描述

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

相关问题 IMPORTXML问题:如何从Yahoo Fantasy Team Page提取数据? - IMPORTXML issue: How to pull data from a Yahoo Fantasy Team Page? 无法使用 Google 表格从 Yahoo Finance 导入 XML 自由现金流 - Unable to IMPORTXML Free Cash Flow from Yahoo Finance using Google Sheets Googlesheets function - IMPORTXML Xpath Yahoo Finance 中列文本的困难 - Googlesheets function - IMPORTXML Xpath difficulties for column text within Yahoo Finance IMPORTXML 未将所需数据提取到 Google 表格 - IMPORTXML not pulling required data to Google Sheets Googlesheets function - IMPORTXML Xpath 用于 Yahoo Finance 中的文本 - 返回错误值 - Googlesheets function - IMPORTXML Xpath for text within Yahoo Finance - returning wrong value 无法使JAXB从Yahoo!解析XML! 金融到Java - Can't get JAXB to parse XML from Yahoo! Finance to Java 我试图在谷歌表格中使用 importxml 从谷歌金融获取股票价格,在 xml 元素和语法中苦苦挣扎 - Im trying to use importxml in google sheets to get a stock price from google finance, struggling with xml elements and syntax 使用IMPORTXML从网站上抓取数据 - Using IMPORTXML to scrape data from a website ImportXML不从XML文件返回数据 - ImportXML does not return data from XML file 使用ImportXML和XPath从XML提取数据 - Extract data from XML with ImportXML and XPath
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM