访问googlesheet视图模式并使用python提取数据

2024-10-03 19:29:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个谷歌表,这是共享给我的视图模式只,我想提取数据从这个视图只谷歌表使用python。你知道吗

我能够提取数据从谷歌表,这是在编辑模式下使用下面的代码,需要知道,如果我们可以提取数据从查看模式谷歌表以及?你知道吗

import gspread 
from oauth2client.service_account import ServiceAccountCredentials
scope = ['https://spreadsheets.google.com/feeds']
creds = ServiceAccountCredentials.from_json_keyfile_name('client_secret.json', scope)
client = gspread.authorize(creds)

Tags: 数据代码fromimportclient视图json编辑