Automating pydrive verification process
I am trying to automate the GoogleAuth process when using the pydrive library ( https://pypi.python.org/pypi/PyDrive ). I've set up the pydrive and the google API such that my secret_client.json works but it requires web authentication for gdrive access every time i run my script: from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive gauth = GoogleAuth() gauth.LocalWebserverAuth() drive = GoogleDrive(gauth) textfile = drive.CreateFile() textfile.SetContentFile('eng.txt') textfile.Upload() print textfile drive.CreateFile({'id':textfile['id']}).GetContentFile('eng-dl.txt')