【发布时间】: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