我正在使用模块gspread来(尝试)解析我的Google云端硬盘上的特定电子表格。不过,我最终希望将这个项目变成一个Web应用程序,所以很自然我不想放弃我的登录信息。但是,由于我只需要阅读电子表格,不应该有办法使用gspread来读取文件的内容而无需登录?我已经试过:使用gspread从Google Drive Spreadsheet中读取而不登录
gc = gspread.Client(None)
sheet = gc.open_by_key(KEY)
但这种失败,出现错误
(<class 'xml.etree.ElementTree.ParseError'>, ParseError(ExpatError('no element found: line 1, column 0',),), None)
我怎样才能做到这一点?
这工作。谢谢! – Sawyer
很高兴知道:)感谢您接受的答案。 – DJanssens