Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
battle111 opened this issue May 19, 2024 · 0 comments
Open

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

battle111 opened this issue May 19, 2024 · 0 comments
Assignees

Comments

@battle111
Copy link

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

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants