I am following this to learn how to use PyDrive library
I installed PyDrive at ....PycharmProjects\Qt\venv\Lib\site-packages
I copied code and saved it in c:\users\me\test.py
Now I am stuck at how to run it. I have google drive account already with some files stored.
I need simple steps to run it from command prompt or Idle or PyCharm Do I need Google cloud account or any thing else?
I changed to (venv)c:\user\me\test.py
I get
ERROR File "..\PycharmProjects\Qt\venv\lib\site-packages\oauth2client\clientsecrets.py", line 121, in _loadfile
with open(filename, 'r') as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'client_secrets.json'
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
gauth = GoogleAuth()
gauth.LocalWebserverAuth()
drive = GoogleDrive(gauth)
file1 = drive.CreateFile({'title': 'Hello.txt'})
file1.SetContentString('Hello')
file1.Upload()
docsfile.GetContentFile('test.html', mimetype='text/html')