【发布时间】:2015-07-12 07:25:40
【问题描述】:
我尝试按照here 给出的答案进行操作,但收到错误Imported Xml content can not be parsed。
这是我尝试过的:
=importXml("http://www.amazon.it/Asus-GeForce-Scheda-Display-Edition/dp/B00SKWIISQ/","//span[@id='priceblock_ourprice']")
=importxml(hyperlink(concatenate("http://www.amazon.it/Asus-GeForce-Scheda-Display-Edition/dp/B00SKWIISQ/")),"//*[@id='priceblock_ourprice']")
他们都没有工作..
编辑:这些功能间歇性地工作。似乎亚马逊网站特别存在问题,因为有时这有效,有时无效(我得到“无法解析导入的内容”)。如果没有,有时如果我添加或删除尾部斜杠,它会再次起作用。其他网站没问题。似乎是一个已知问题:https://productforums.google.com/forum/#!topic/docs/UuMGRl7Asew https://productforums.google.com/forum/#!topic/docs/yWPaNDK0Kpg 原因何在。
【问题讨论】:
标签: xpath web-scraping google-sheets amazon google-sheets-importxml