[英]Extracting with Google Sheets importxml the xpath style attribute value
[英]IMPORTXML in Google Sheets and XPath
網站地址: http : //www.eng.kodex.com/product_view.do?fId=2ETF68
在Google表格中,我要在網站中檢索iNAV(KRW)的價格。
我找到了XPath,並在電子表格中鍵入了importxml
函數,但是它不起作用。
無法解析導入的XML內容
XPath: //*[@id="container"]/section/div[2]/div[1]/ul/li[2]/div/p[1]
=REGEXEXTRACT(QUERY(TRANSPOSE(IMPORTDATA(
"http://www.eng.kodex.com/product_view.do?fId=2ETF68")),
"where Col1 contains 'basp:""'"), "(\d+.*)""")
或四舍五入:
=ROUND(REGEXEXTRACT(QUERY(TRANSPOSE(
IMPORTDATA("http://www.eng.kodex.com/product_view.do?fId=2ETF68")),
"where Col1 contains 'basp:""'"), "(\d+.*)"""))
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.