I have the following code that runs on google colab. I want to be able to run this code locally but I am constantly running into errors.
# Auth GDrive
auth.authenticate_user()
gauth = GoogleAuth()
gauth.credentials = GoogleCredentials.get_application_default()
drive = GoogleDrive(gauth)
# Key
downloaded = drive.CreateFile({'id': 'id1'})
# Load Up Python Files
pyDownload = drive.CreateFile({'id': 'id2'})
pyDownload.GetContentFile('file.zip')
consumer_key = ''
username = ''
private_key = downloaded.GetContentString()
Any ideas on how to make it work locally?