I tried to export a Google spreadsheet in csv format using the Google client library for Python:
# OAuth and setups... req = g['service'].files().export_media(fileId=fileid, mimeType=MIMEType) fh = io.BytesIO() downloader = http.MediaIoBaseDownload(fh, req)
This works for MIMEType: application / pdf, MS Excel, etc.
According to Google documentation supported by text/csv . But when I try to make a request, the server gives 500 Internal Error .
Even using google's Drive API Playground , it gives the same error.
I tried:
As in v2, I added a field:
gid = 0
specify a worksheet for the request, but then this is a bad request.
source share