How can I access a Team Drive instead of personal Google Drive using PyDrive?
问题 I am trying to use PyDrive to programmatically list and then download files stored on a Team Drive that I can access in a browser. When I do this: from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive gauth = GoogleAuth() drive = GoogleDrive(gauth) file_list = drive.ListFile( { 'q': "'root' in parents and trashed=false", 'corpora': "teamDrive", 'teamDriveId': <team drive ID>, 'includeTeamDriveItems': "true", 'supportsTeamDrives': "true" } ).GetList() for file1 in file_list