【发布时间】:2020-02-13 19:33:20
【问题描述】:
我正在尝试使用 Xpath 链接来自站点的特定号码,但它一直说内容为空。
这是 xpath:
//*[@id="content"]/div[2]/div[2]/div[2]/div/div/div/div/div[2]/table/tbody/tr[2]/td[7]
使用公式:importxml
这是我在 Google 表格中输入的内容:
=IMPORTXML("https://scaletec.locateinv.com/app#/inventory/part/3031/inventory","/html/body/div[4]/div[2]/div/div/div[3]/div/div[2]/div[2]/div[2]/div/div/div/div/div[2]/table/tbody/tr[1]/th[7]")
【问题讨论】:
-
这能回答你的问题吗? Importxml Imported Content Empty
标签: xpath web-scraping google-sheets google-sheets-formula google-sheets-importxml