1from pydrive.auth import GoogleAuth
2from pydrive.drive import GoogleDrive
3from google.colab import auth
4from oauth2client.client import GoogleCredentials
5
1auth.authenticate_user()
2gauth = GoogleAuth()
3gauth.credentials = GoogleCredentials.get_application_default()
4drive = GoogleDrive(gauth)
5
1downloaded = drive.CreateFile({'id':"your_file_ID"}) # replace the id with id of file you want to access
2downloaded.GetContentFile('your_file_name.csv') # replace the file name with your file
3