【问题标题】:Import data from REST service in Google Sheet从 Google 表格中的 REST 服务导入数据
【发布时间】:2017-10-04 09:42:12
【问题描述】:

我只想从谷歌表格中的休息网址中获取一行。

当我尝试时

=IMPORTDATA("https://imageryuploader.geoplatform.gov/arcgis/rest/services/ImageEvents/MapServer/1/query?text=A0016-4646&outFields=EXIFPhotoDate")

我得到了页面的整个代码块

=IMPORTHTML("https://imageryuploader.geoplatform.gov/arcgis/rest/services/ImageEvents/MapServer/1/query?text=A0016-4646&outFields=EXIFPhotoDate", "list",1) 不适用

如果我只是输入https://imageryuploader.geoplatform.gov/arcgis/rest/services/ImageEvents/MapServer/1/query?text=A0016-4646&outFields=EXIFPhotoDate 进入我得到的浏览器

记录:2

EXIFPhotoDate: 1506173228000 Point: X: -66.61147999999997 Y: 18.279028333000042

EXIFPhotoDate: 1506173228000 Point: X: -66.61147999999997 Y: 18.279028333000042

我想在我们拥有的地方创建一个谷歌表格

A 列 - 图像名称, 在 B 列中,它使用 =IMPORTHTML("https://imageryuploader.geoplatform.gov/arcgis/rest/services/ImageEvents/MapServer/1/query?text=A0016-4646&outFields=EXIFPhotoDate", "list",1) 或类似的东西并获得 UNIX D/T。 最后,在 C 列中应输入 dd/mm/yyyy 并在 D 中输入 24 UTC 时间。

感谢Convert Exif date to different format我有转换unix d/t的公式。

如果 Google 表格做不到,很高兴使用 EXCEL 或 Python 2.7

示例 GSheet 位于 https://docs.google.com/spreadsheets/d/1Ff-gohRIkumpxqSeEVKyGq6PPEP542PJSB1vBIzI1jA/edit#gid=0

【问题讨论】:

    标签: python excel rest google-sheets


    【解决方案1】:

    您是否安装或使用过 Google Sheets API?
    https://developers.google.com/sheets/api/quickstart/python

    提供了一些示例代码。

    这里是 GitHub 链接
    https://github.com/kurtlocker/sheets-api

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-01-01
      • 1970-01-01
      • 2019-05-18
      • 1970-01-01
      • 2023-03-08
      • 1970-01-01
      • 2018-08-10
      相关资源
      最近更新 更多