Skip to content

Instantly share code, notes, and snippets.

@VincentVetsch
Created August 13, 2012 14:20
Show Gist options
  • Save VincentVetsch/3341187 to your computer and use it in GitHub Desktop.
Save VincentVetsch/3341187 to your computer and use it in GitHub Desktop.
Python: Get Pass
#!/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