Nov-04-2018, 07:21 AM
hey folk ,,, i already write a code to login into my gmail ... my code :
import imaplib enc1 = ("password") #=================================================>>>> change ur Password from here ... enc2 = ("[email protected]") #=====================================>>>> change ur E-mail from here ..... conn = imaplib.IMAP4_SSL("imap.gmail.com", 993) q= conn.login(enc2, enc1) #Login to Google Drive and create drive object print qoutput :
Output:('OK', ['[email protected] authenticated (Success)'])
ok now how i can upload files in my ( /root/Downloads ) to my gmail drive ??