Created
February 18, 2015 21:24
-
-
Save hectorgool/102e4f37880745a08726 to your computer and use it in GitHub Desktop.
Lee 2 columas de un google doc
This file contains 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
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