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

Aperta
#1,424 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@vinay-google ci sta già lavorando.

Dal 19/5/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

`

Lingua principale
Python
Stelle
1.4k
Fork
917
Merge medio
3m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di googleworkspace/python-samples

Tutte le issue di googleworkspace/python-samples

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.