Google 工作表和 XPath 中的 IMPORTXML
IMPORTXML in Google Sheets and XPath
站点地址:http://www.eng.kodex.com/product_view.do?fId=2ETF68
在 Google 表格中,我想抓取站点中的 iNAV (KRW) 价格。
我找到了 XPath 并在电子表格中键入了 importxml
函数,但它不起作用。
Could not parse imported XML content
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+.*)"""))
站点地址:http://www.eng.kodex.com/product_view.do?fId=2ETF68
在 Google 表格中,我想抓取站点中的 iNAV (KRW) 价格。
我找到了 XPath 并在电子表格中键入了 importxml
函数,但它不起作用。
Could not parse imported XML content
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+.*)"""))