Skip to content

Instantly share code, notes, and snippets.

@hectorgool
Created February 18, 2015 21:24
Show Gist options
  • Save hectorgool/102e4f37880745a08726 to your computer and use it in GitHub Desktop.
Save hectorgool/102e4f37880745a08726 to your computer and use it in GitHub Desktop.
Lee 2 columas de un google doc
import gspread
# Login with your Google account
gc = gspread.login('', '')
#You can open a spreadsheet by its title as it appears in Google Docs
sh = gc.open("Santix Loc") # <-- Look ma, no keys!
# By title
worksheet = sh.worksheet("Locs")
#Getting All Values From a Worksheet as a List of Lists
L = worksheet.get_all_values()
for el in L:
if el != L[0]:
print(el[0] +'='+ el[1])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment