Created
August 13, 2012 14:20
-
-
Save VincentVetsch/3341187 to your computer and use it in GitHub Desktop.
Python: Get Pass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import getpass | |
import gdata.docs | |
import gdata.docs.client | |
import gdata.docs.service | |
gclient = gdata.docs.client.DocsClient() | |
gclient.ClientLogin(raw_input("Username: "), getpass.getpass(), "") | |
try: | |
gclient.ssl = True | |
gclient.http_client.debug = True | |
docs = gclient.GetEverything() | |
print "how many docs you got? %d" % len(docs) | |
except: | |
print "login failed" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment