403 error from google after a few successful runs of my code

未關閉
#1,424 0 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@vinay-google 已經在處理了。

開始於 2024年5月19日。

評估

這個 Issue 還沒有評估資料。

描述

I am downloading files with the drive API and once I run my code a few times. I get this: "We're sorry...but your computer or network may be sending automated queries. To protect our users, we can't process your request right now"

I am new to this API and I do not understand much.

`
req = service.files().get_media(fileId=id)

    file_path = os.path.join("JunkItem", name)
    with io.FileIO(file_path, "wb") as f:
        downloader = MediaIoBaseDownload(f, req)
        done = False
        while not done:
            status, done = downloader.next_chunk()
    return file_path

`

主要語言
Python
星號
1.4k
分支
917
平均合併
3 分鐘
30 天內合併 PR
1

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

googleworkspace/python-samples 的其他 Issue

查看 googleworkspace/python-samples 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。