【问题标题】:"Imported Content Is Empty"“导入的内容为空”
【发布时间】: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]")

【问题讨论】:

标签: xpath web-scraping google-sheets google-sheets-formula google-sheets-importxml


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2016-03-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-17
    相关资源
    最近更新 更多