1'''
21) pip3 install pydrive
32) https://pythonhosted.org/PyDrive/quickstart.html
4 check autentication and follow istruction in above site
53) Run code for first autentication
6'''
7from pydrive.auth import GoogleAuth
8
9gauth = GoogleAuth()
10gauth.LocalWebserverAuth()
11'''
124) select account and give permissions
135) now you're ready
14'''
15from pydrive.auth import GoogleAuth
16from pydrive.drive import GoogleDrive
17
18gauth = GoogleAuth()
19#gauth.LocalWebserverAuth() # Creates local webserver and auto handles authentication.
20
21drive = GoogleDrive(gauth)
22
23file1 = drive.CreateFile({'title': 'file_name.extention'}) # Create GoogleDriveFile instance with title 'Hello.txt'.
24file1.SetContentFile('file_path') # Set content of the file from given string.
25#file.SetContentString('string to put inside file')
26file1.Upload()