Created
October 22, 2017 07:15
-
-
Save swelljoe/7a1a3fa83255335ea669522bbc5a296a to your computer and use it in GitHub Desktop.
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
import gspread | |
from oauth2client.service_account import ServiceAccountCredentials | |
scope = ['https://spreadsheets.google.com/feeds', | |
'https://www.googleapis.com/auth/drive'] | |
credentials = ServiceAccountCredentials.from_json_keyfile_name('client_secret.json', scope) | |
gc = gspread.authorize(credentials) | |
sh = gc.create("Test Sheet") | |
worksheet = sh.add_worksheet(title="A worksheet", rows="100", cols="20") | |
worksheet.update_acell('A1', 'Bingo!') | |
print(worksheet.acell('A1')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment