我试图使用 oauth2client 和 gspread 在 googlesheet 上进行操作,但我遇到的问题是,当使用 oauth2client 时,它需要一个范围字段。我不知道范围是什么。下面是oauth2client的使用代码。
import gspread
from oauth2client.service_account import ServiceAccountCredentials
scope = ['https://spreadsheets.google.com/feeds']
credentials = ServiceAccountCredentials.from_json_keyfile_name('gspread-april-2cd … ba4.json', scope)
gc = gspread.authorize(credentials)
wks = gc.open("Where is the money Lebowski?").sheet1