Google ImportXML从Box Store拉价-导入的内容为空

时间:2019-02-07 18:03:07

标签: xml google-sheets

我正在制作一个电子表格,以便为一些通用零件拉一些价格。我在从https://www.menards.com/main/p-1524638039424.htm

提取价格时遇到困难
Google Sheets Error N/A - Imported content is empty.

如果我理解控制台的正确性,那么当我尝试验证xml时,会得到"[]"的返回值。 Xpather说,我需要的价格的xpath是

/html/body[@class='qb-oc-body-non-plp']/div[@class='wrap ']/div[@id='mainContent']/div[@id='page']/div/form[@id='itemForm']/div[@id='itemDetailPage']/div[2]/div[@id='item-header']/div[@class='itemCenterContent']/div[@id='price-div']/div[@id='sale-div']/span[@class='productPriceDescriptionPage']/div[@class='fontSize14']/span[@class='EDLP fontSize16 fontBold alignRight']

检查元素副本xpath告诉我//*[@id="sale-div"]/span/div[1]/span[2]

我正在将电子表格中的这两个值连接在一起并显示错误 https://www.menards.com/main/p-1524638039424.htm

//*[@id="sale-div"]/span/div[1]/span[2]/text()

总有没有要在该页面上拉价格?

1 个答案:

答案 0 :(得分:0)

看起来不可能: