从 link 获取价格
Get price from link
我正在尝试从以下link获取价格:
我尝试了以下方法:
=IMPORTXML(A2,"//*[@class='c-price-block__price-price ']/text()")
但是,我在电子表格中得到 #N/A
。
在 Chrome 中,元素被正确选择:
对我做错了什么有什么建议吗?
=IMPORTXML(A2, "//div[@class='c-price-block__price o-price-text']")
=IMPORTXML("https://"&A2, "//div[@class='c-price-block__price o-price-text']")
我正在尝试从以下link获取价格:
我尝试了以下方法:
=IMPORTXML(A2,"//*[@class='c-price-block__price-price ']/text()")
但是,我在电子表格中得到 #N/A
。
在 Chrome 中,元素被正确选择:
对我做错了什么有什么建议吗?
=IMPORTXML(A2, "//div[@class='c-price-block__price o-price-text']")
=IMPORTXML("https://"&A2, "//div[@class='c-price-block__price o-price-text']")