# If there are no (valid) credentials available, let the user log in. With open('token.pickle', 'rb') as token:
# created automatically when the authorization flow completes for the first # The file token.pickle stores the user's access and refresh tokens, and is Prints the names and ids of the first 10 files the user has access to. '''Shows basic usage of the Drive v3 API. # If modifying these scopes, delete the file token.pickle. I need to download all the files inside a drive folder or the folder itself and save them in a specific local destination, my actual code is here: import pickleįrom googleapiclient.discovery import buildįrom google_auth_oauthlib.flow import InstalledAppFlowįrom import Requestįrom googleapiclient.http import MediaIoBaseDownload