简体   繁体   English

访问 Google Drive 中的电子表格

[英]Accessing a Spreadsheet in Google Drive

I have a Spreadsheet stored a few directories into my Google Drive that I'd like to access and read with the Google Spreadsheet API using Python.我有一个电子表格,在我的 Google 云端硬盘中存储了一些目录,我想使用 Python 使用 Google 电子表格 API 访问和阅读这些目录。 What is the best way to do this?做这个的最好方式是什么? It seems like all of the examples on the Google API website involve documents that are in Google Docs, not Google Drive, and it seems like none of the examples for the Google Drive API involve reading spreadsheets.似乎 Google API 网站上的所有示例都涉及 Google Docs 中的文档,而不是 Google Drive,而且似乎 Google Drive API 的所有示例都没有涉及阅读电子表格。

您可以使用电子表格 APIApps 脚本以编程方式访问存储在您的云端硬盘帐户中的电子表格。

链接 = https://docs.google.com/spreadsheets/d/...source = StringIO.StringIO(requests.get(link).content)) 数据 = pd.read_csv(source)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM