I'm struggling to get access to a google spreadsheet with python 2.7 using gspread.
Here's what I have so far:
import gspread
from oauth2client.service_account import ServiceAccountCredentials
scope = ['https://spreadsheets.google.com/feeds']
credentials = ServiceAccountCredentials.from_json_keyfile_name(
'credentials.json', scope)
gc = gspread.authorize(credentials)
wks = gc.open("PracticeOpsBS").sheet1
The result is a bunch of stuff that I think is showing me what is going on, resulting in the following:
"HttpAccessTokenRefreshError: invalid_grant: Invalid JWT Signature."
Ultimately I'm hoping to access the information from two tabs of this worksheet to do some analysis, but haven't been able to pull the data in to python from google. Any help is appreciated and I'll answer any clarifying questions as I can!