"Imported Content Is Empty"

"Imported Content Is Empty"

我正在尝试 link 使用 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]")

Google 表格不支持在登录页面后面抓取数据,也不支持 JavaScript 内容,因此这是不可能的。