Skip to content

Instantly share code, notes, and snippets.

@lucidfrontier45
Last active August 29, 2015 14:07
Show Gist options
  • Save lucidfrontier45/d9a6b60389c460bfa6d4 to your computer and use it in GitHub Desktop.
Save lucidfrontier45/d9a6b60389c460bfa6d4 to your computer and use it in GitHub Desktop.
gdata text_db example
from gdata.spreadsheet import service, text_db
client = text_db.DatabaseClient(username=user, password=password)
db = client.GetDatabases(name=spreadsheet_name)[0]
table = db.GetTables(name=worksheet_name)[0]
# notice that even if it is shown as some thing like "DD/MM/YY" in the table, timestamp or date should be YYYY-MM-DD
for row in table.FindRecords("timestamp > 2014-10-01"):
print row.content
@lucidfrontier45
Copy link
Author

you need first remove atom if use anaconda dist.

$ conda remove atom
$ conda install gdata

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment