【问题标题】:How can I fix Xpath in Importjson function?如何修复 Importjson 函数中的 Xpath?
【发布时间】:2018-01-06 15:33:57
【问题描述】:

我想从 JSON 响应中获取列表算法。在谷歌表中我使用这个命令:

IMPORTJSON("http://miningpoolhub.com/index.php?page=api&action=getminingandprofitsstatistics", "return/algo") 

但我收到消息“Nod 不可用”我认为我在 Xpath 命令中做错了。我该如何解决?

【问题讨论】:

  • 您的意思是“节点不可用”吗?请将 XML 示例也添加到您的问题中。 return/algo 是您使用的 XPath 表达式吗?

标签: arrays json xpath google-sheets spreadsheet


【解决方案1】:

这个怎么样?我认为/需要添加到路径的顶部。

=IMPORTJSON("http://miningpoolhub.com/index.php?page=api&action=getminingandprofitsstatistics", "/return/algo")

如果这对你没有用,我很抱歉。

【讨论】:

    猜你喜欢
    • 2021-12-31
    • 2020-12-15
    • 1970-01-01
    • 2019-09-08
    • 1970-01-01
    • 2017-07-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多