从Google表格中的REST服务导入数据
我只想从Google表格中的其他url获取一行。
当我尝试
=IMPORTDATA("https://imageryuploader.geoplatform.gov/arcgis/rest/services/ImageEvents/MapServer/1/query?text=A0016-4646&outFields=EXIFPhotoDate")
我得到了页面的整个代码块
我得到NA =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
放到浏览器中,
logging:2
EXIFPhotoDate:1506173228000 Point:X:-66.61147999999997 Y:18.279028333000042
EXIFPhotoDate:1506173228000 Point:X:-66.61147999999997 Y:18.279028333000042
我想创build一个谷歌表,我们有
列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列中应该inputdd / mm / yyyy和24 UTC时间。
感谢将Exifdate转换为不同的格式我有转换unix d / t的公式。
如果Google表格无法做到这一点,那么很高兴使用EXCEL或Python 2.7
示例GSheet位于https://docs.google.com/spreadsheets/d/1Ff-gohRIkumpxqSeEVKyGq6PPEP542PJSB1vBIzI1jA/edit#gid=0
你有没有安装或使用谷歌床单API?
https://developers.google.com/sheets/api/quickstart/python
有一些示例代码提供。
这是GitHub链接
https://github.com/kurtlocker/sheets-api
希望能帮助到你。