python-3.x - PyDrive 快速入门和错误 403 : access_denied

标签 python-3.x google-api google-drive-api pydrive

我正在尝试将 google drive photo 下载到我的本地驱动器。我认为这应该是一项简单的任务,但它实际上具有挑战性,尤其是这是我第一次尝试使用 google API。

按照这个有用的 Youtube video 中的所有步骤操作在这个 PyDrive Link

我到达了显示将文件重命名为“client_secrets.json”并将其放在您的工作目录中的步骤。

然后我运行这段代码

from pydrive.auth import GoogleAuth

gauth = GoogleAuth()
gauth.LocalWebserverAuth() # Creates local webserver and auto handles authentication.

但没有到达任何地方。特别是,我得到了这个错误

Error 403: access_denied The developer hasn’t given you access to this app. It’s currently being tested and it hasn’t been verified by Google. If you think you should have access, contact the developer

我是开发者,我正在尝试将我的谷歌文件(实际上是一张图片)下载到我的本地驱动器。

感谢大家的支持。

最佳答案

转到 API 和服务部分并在 OAuth 同意屏幕选项卡中将您自己添加为“测试用户”。

关于python-3.x - PyDrive 快速入门和错误 403 : access_denied,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65980758/

相关文章:

python - 使用 Python pickle 存储对象,并将其加载到不同的命名空间

python - 删除这些元组列表中重复的列表组合的元组

c# - 如何使用适用于 .NET 的 Google 客户端 API 获取已解码的 Play Integrity API token

python - 自动化 pydrive 验证过程

azure - 使用 Azure Functions 中的 Google API

python-3.x - 如何使用 BeautifulSoup 在 html 评论标签中提取 json?

python - Excel 到 pandas 到 numpy 数组的转换

google-maps - 在Google开发者控制台的 "Accept requests from these HTTP referrers"字段中设置HTTP引用的正确方法

google-drive-api - 如何在没有企业版Google帐户的情况下对带有服务帐户的Google云端硬盘进行集成测试

google-apps-script - 使用 Google App Script 从 Google Drive 解压缩文件