我已经使用 gspread
库从 Google 文档中读取 CSV 文件,但它首先需要我登录。
gc = gspread.login('email','password')
sheetData = gc.open("NSEport").sheet1
我想使用共享电子表格时生成的 key 直接打开电子表格,而无需登录 Google 帐户。
最佳答案
full_doc = gc.open("NSEport")
list_of_worksheets = full_doc.worksheets()
one_I_want = full_doc.get_worksheet(0) # gets first worksheet
关于python - 如何在不登录的情况下使用 key 在 python 中读取谷歌电子表格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14316107/