我在Google表上的功能有问题。我在单元格中写了这篇文章:
= index(importxml(" https://coinmarketcap.com/currencies/power-ledger/";"//span [@data-currency-price]"); 1)
它应该打印本网站上相同的值:单击此处但是,而不是显示出完全不同的价值。我不明白,我在哪里错了?
在我的环境中,您的功能现在检索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="#####">
如果这不起作用,对不起。