【问题标题】:Get data from geoapi into google spreadsheets从 geoapi 获取数据到谷歌电子表格
【发布时间】:2014-12-01 23:49:55
【问题描述】:

我正在尝试根据城市获取国家/地区名称,这是华沙的公式: =importxml("http://api.geonames.org/search?q=warszawa&maxRows=1&style=FULL&username=glebvk";"/geonames/geoname[1]/Countrycode")

我收到"Error: Imported content is empty."

【问题讨论】:

    标签: xml google-sheets geoapi


    【解决方案1】:

    将您的 XPath 查询从 /geonames/geoname[1]/Countrycode 更改为 /geonames/geoname[1]/countryCode。 XPath 查询区分大小写。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多