我希望使用Google Drive API(Python)下载电子表格文件的一些标签。
文件的元数据中是否包含gids信息?
我现在尝试做的是(这可能不正确,请建议):
file_metadata = self.service.files().get(file_id=file_id).execute()
# in the following line, how can I get a download url with a gid (a tab in a spreadsheet file)
download_url = file_metadata.get('exportLinks')['text/csv']
# download the file.
gid
的意思? - davejagoda