【问题标题】:Using =IMPORTXML with google sheets to pull data from Ebay API使用 =IMPORTXML 和谷歌表格从 Ebay API 中提取数据
【发布时间】:2017-02-16 02:26:37
【问题描述】:

我无法确定 xpath 以使用 ImportXML 函数将 this ebay xml 中的一些特定数据提取到谷歌表中。

我目前正在使用“////”作为 xpath,并且能够从页面中提取所有数据。但我只需要获取 2 条信息:convertedCurrentPrice 和 shippingServiceCost(如提供的屏幕截图所示)。

非常感谢任何帮助!

【问题讨论】:

标签: xml xpath import google-sheets ebay-api


【解决方案1】:

感谢回复的人。我实际上发现,由于它是原始 XML 数据,我需要使用带有 XmlService.parse()、getChild() 等的谷歌应用程序脚本来提取数据并将其写入电子表格。

参考: https://developers.google.com/apps-script/reference/xml-service/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多