简体   繁体   English

Google Docs importXML from Amazon.com 错误

[英]Google Docs importXML from Amazon.com error

I'm trying to scrape data from Amazon.com for product prices, and no matter what I try I just can't seem to get it to work.我正在尝试从 Amazon.com 中抓取产品价格的数据,但无论我尝试什么,我似乎都无法让它发挥作用。 The error it keeps throwing is它不断抛出的错误是

Imported XML content can not be parsed导入的 XML 内容无法解析

My formula is:我的公式是:

=importxml(hyperlink(concatenate("http://",L$1, "/dp/", $B2)),"//*[@id='priceblock_ourprice']")

L1 is the geography (ex: "amazon.com") L1 是地理位置(例如:“amazon.com”)
B2 is the ASIN (ex: "B00ICR1UB6") B2 是 ASIN(例如:“B00ICR1UB6”)

This same formula works just fine across all other geographies, but for some reason it just won't work on.com同样的公式在所有其他地区都适用,但由于某种原因,它在其他地区不起作用。com

这为我工作:

=importxml(hyperlink(concatenate("AMAZON_PRODUCT_PAGE_URL_HERE")),"//*[@id='priceblock_ourprice']")

Same issue here. 这里同样的问题。 Can't make any importxml formula work with amazon.com. 无法使任何importxml公式与amazon.com一起使用。 For example: =IMPORTXML(Amazon-product-page-url,"//a[@id='brand']") It works perfectly fine using the formula "XPathOnUrl" from SEO Tools for Excel but not in GDocs. 例如: =IMPORTXML(Amazon-product-page-url,"//a[@id='brand']")使用来自SEO Tools for Excel的公式“ XPathOnUrl”可以很好地工作,但不适用于GDocs。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我尝试使用 Pyspark 从 Amazon Keyspaces 获取数据时,出现不支持的分区程序:com.amazonaws.cassandra.DefaultPartitioner 错误 - When I try fetch data from Amazon Keyspaces with Pyspark, I get Unsupported partitioner: com.amazonaws.cassandra.DefaultPartitioner Error 错误:System.InvalidOperationException:IDX20803:无法从以下位置获取配置:'https://securetoken.google.com - Error : System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://securetoken.google.com 引起:com.amazon.redshift.util.RedshiftException:错误:查询(659514)已根据用户请求取消 - Caused by: com.amazon.redshift.util.RedshiftException: ERROR: Query (659514) cancelled on user's request 如何解决,无法加载默认凭据。 浏览至 https://cloud.google.com/docs/authentication/getting-started 了解更多信息 - How to solve , Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information 如何排查 Amazon Connect CCP 错误“awsapps.com 拒绝连接” - How to troubleshoot Amazon Connect CCP error "awsapps.com refused to connect" 从 csv 文件或来自 google 文档的电子表格填充 appengine 数据库中的数据 - Populating data in appengine database from a csv file or spreadsheet from google docs 如何将 Google Cloud 项目所有权从 MyEmail@mydomain.com 转移到 myemail@mydomain.com? - How to transfer Google Cloud project ownership from MyEmail@mydomain.com to myemail@mydomain.com? 将数据从 Google Cloud Storage 导出到 Amazon S3 - Exporting data from Google Cloud Storage to Amazon S3 Amazon Connect 能否从 lambda function 检索错误消息? - Can Amazon Connect retrieve the error message from a lambda function? 谷歌发布/订阅错误 com.google.cloud.pubsub.v1.StreamingSubscriberConnection - Google pub/sub ERROR com.google.cloud.pubsub.v1.StreamingSubscriberConnection
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM