Created
March 29, 2021 10:47
-
-
Save metahertz/9e268f4eb85be7dd2d0db3886db5cd5f 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'] | |
credentials = ServiceAccountCredentials.from_json_keyfile_name('client_secret.json', scope) | |
gc = gspread.authorize(credentials) | |
# Open a worksheet from spreadsheet with one shot | |
wks = gc.open("sheetname").sheet1 | |
wks.update_acell('B2', "SellValue") | |
# Fetch a cell range | |
cell_list = wks.range('A1:B7') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment