Googlesheet importxml 使用 xpath 查找值
我需要从此网站链接 =https://www.mql5.com/en/signals/1414510" rel="nofollow noreferrer">获取整数值“最大回撤”。 mql5.com/en/signals/1414510,
从谷歌浏览器我尝试复制 xpath
//*[@id="radarChart"]/svg/text[8]/tspan[2]
然后在谷歌表中,我写道:
=importxml(https://www.mql5.com/en/signals/1414510, "//*[@id='radarChart']/svg/text[8]/tspan[2]")
它无法检索该值, 如何将正确的 xpath 写入值? 谢谢
I need to get the integer value "maximum drawdown" from this website link =https://www.mql5.com/en/signals/1414510,
from google chrome i tried copy the xpath
//*[@id="radarChart"]/svg/text[8]/tspan[2]
then in google sheet, i write:
=importxml(https://www.mql5.com/en/signals/1414510, "//*[@id='radarChart']/svg/text[8]/tspan[2]")
It cant retrieve the value,
How to write the correct xpath to the value?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过 xpath
尝试 https://www.mql5.com/en/signals/1409351
进行概述,
我强烈建议首先测试此公式,以便通过 json
第二种方法可能是解析源中包含的 json (varradarChart)
或
by xpath
Try for https://www.mql5.com/en/signals/1409351
i highly recommand to test first this formula to have an overview
by json
the second way could be to parse the json contained in the source (var radarChart)
or