我正在尝试使用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内容,因此这是不可能的。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句