【发布时间】:2020-11-18 18:36:04
【问题描述】:
我会尽量直截了当。
我有一个这样的电子表格网址:https://docs.google.com/spreadsheets/d/1231SDFS3afer3SDfsdf-34SDFSDgfdsd42/edit#gid=5439787534
gid=5439787534 部分指向我要访问的电子表格中的确切工作表。我正在使用 python + gspred 来访问它,但我没有找到一种方法来获取我上面提到的 GID。
我的代码现在是这样的:
wb = client.open_by_url('https://docs.google.com/spreadsheets/d/1231SDFS3afer3SDfsdf-34SDFSDgfdsd42/edit#gid=5439787534')
但它不访问工作表,它只是访问一般的电子表格,而不是访问我需要的确切标签..
有什么帮助吗?
【问题讨论】:
标签: python python-3.x google-sheets google-sheets-api gspread