我对Google表格上的功能有疑问。我在一个单元格中写道:
=指数(IMPORTXML( “https://coinmarketcap.com/currencies/power-ledger/”; “//跨度[@数据货币价格]”); 1)
它应该打印在本网站上的相同值:click here,但它显示完全不同的值。我不明白,我哪里错了?
在我的环境中,您的函数现在检索1.04。这与你的结果不一样。所以你能尝试一下吗?
=IMPORTXML("https://coinmarketcap.com/currencies/power-ledger/","//span[@id='quote_price']/@data-usd")
此函数从以下HTML检索#####
。
<span id="quote_price" data-currency-price data-usd="#####">
如果这不起作用,我很抱歉。