【问题标题】:PyDrive Quickstart and Error 403: access_deniedPyDrive 快速入门和错误 403:access_denied
【发布时间】:2021-01-31 15:18:59
【问题描述】:

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

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

我到达了上面写着Rename the file to “client_secrets.json” and place it in your working directory.的步骤

然后我运行这段代码

from pydrive.auth import GoogleAuth

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

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

错误 403: access_denied 开发者没有给你访问这个 应用程序。它目前正在测试中,尚未得到验证 谷歌。如果您认为您应该有访问权限,请联系开发人员

我是开发人员,我正在尝试将我的 google 文件(实际上是图片)下载到我的本地驱动器。

感谢大家的支持。

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-30
      • 2023-03-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-14
      相关资源
      最近更新 更多