I've got a spreadsheet URL like this: https://docs.google.com/spreadsheets/d/1231SDFS3afer3SDfsdf-34SDFSDgfdsd42/edit#gid=5439787534
I tried this code I got a reference from https://towardsdatascience.com/read-data-from-google-sheets-into-pandas-without-the-google-sheets-api-5c468536550
googleSheetId = '1231SDFS3afer3SDfsdf-34SDFSDgfdsd42'
worksheetName = 'abcde'
start_url = f"https://docs.google.com/spreadsheets/d/{googleSheetId}/gviz/tq?tqx=out:csv&sheet={worksheetName}"
url = start_url.replace(" ","")
df = pd.read_csv(url)
but I am getting this error
ParserError: Error tokenizing data. C error: Expected 1 fields in line 6, saw 2
How to resolve this without Google API authentication?
How to resolve this without Google API authentication?, in your actual situation, is the Spreadsheet not publicly shared? And, you want to retrieve the values from the unshared Spreadsheet without authorization. Is my understanding correct? By the way, are you the owner of Spreadsheet?I also tried to do the same with the spreadsheet that I own but got the same error, in your actual situation, you want to retrieve the values from a Google Spreadsheet which has other uses and is not publicly shared without the authorization. Is my understanding correct?