【问题标题】:How to find the correct Xpath to get importxml function work如何找到正确的 Xpath 以使 importxml 函数正常工作
【发布时间】:2020-12-27 09:19:09
【问题描述】:

我正在尝试在 Google 表格中使用 ImportXML 函数,以便将一些价格带入我的 Google 表格中,如何为此找到正确的 Xpath?

这是网址: https://www.superama.com.mx/catalogo/d-frutas-verduras/f-frutas/l-naranja-limon-y-citricos/mandarina-por-kilo/0000000003029

我正在尝试带上 id="lblPrice",在这种情况下为 24.90 美元

我正在尝试这个公式,但我得到了 NA

=IMPORTXML("https://www.superama.com.mx/catalogo/d-frutas-verduras/f-frutas/l-naranja-limon-y-citricos/mandarina-por-kilo/0000000003029","//*[@id="lblPrice"]")

【问题讨论】:

标签: xpath google-sheets google-sheets-formula


【解决方案1】:

IMOPORTXML/Google 表格不支持抓取 JavaScript 元素。

【讨论】:

猜你喜欢
  • 2022-12-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2022-12-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多