在python中,是否可以编辑公共共享的Google工作表,而无需使用身份验证代码? [英] In python, is it possible to edit a publicy shared google sheet, without an auth code?

查看:101
本文介绍了在python中,是否可以编辑公共共享的Google工作表,而无需使用身份验证代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了一个Google工作表,以便任何人都可以编辑.

I have a google sheet which I set so that anyone can edit.

我注意到,在 gspread 包中,您可以单独从链接中获取电子表格.示例:

I noticed that in the gspread package, you can get a spreadsheet from the link alone. Example:

sht1 = gc.open_by_key('1wj9L7Hn779GKP0s4MblkU1wHcqaVcG_E2YKAo1vdof0')

由于任何人都可以编辑,因此无需提供用于访问的身份验证代码.但是,似乎总是需要使用auth代码对其进行初始化.

Since anyone can edit, providing an auth code for access is not necessary. However, it seems that you always need to initialize it using an auth code.

是否有一种无需任何验证码即可编辑Google表格的方法?

Is there a way to edit a google sheet without any auth code?

这可能与本文的重复内容相混淆

This may get confused as a duplicate of this post Using gspread to read from a Google Drive Spreadsheet without logging in however, the solutions are to either have a client provide their auth code, or download the file directly, but no option to edit the file.

推荐答案

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆