I can already edit an existing sheet by using the open_by_key() function but I would like to be able to create a brand-new sheet.
When I try the following code:
import pygsheets
creds_file = "/Users/jerome/audible2googlesheet.json"
gc = pygsheets.authorize(service_file=creds_file)
sh = gc.open("my_1st_public_sheet")
wks = sh.sheet1
# Update a single cell.
wks.update_value('A1', "some value")
sh.share('', role='reader', type='anyone')
I get this exception/error:
raise SpreadsheetNotFound('Could not find a spreadsheet with title %s.' % title) pygsheets.exceptions.SpreadsheetNotFound: Could not find a spreadsheet with title my_1st_public_sheet.
What am I missing?