You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
`
The text was updated successfully, but these errors were encountered:
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)
`
The text was updated successfully, but these errors were encountered: