I\'m sorry if this is an obvious question, I\'m still pretty new to the API. I\'m using the python drive api library, and trying to download a google spreadsheet as a csv.
Here's an implementation of Alain's suggestion that works for me:
downloadUrl = entry.get('exportLinks')['application/pdf'] # Strip "=pdf" and replace with "=csv" downloadUrl = downloadUrl[:-4] + "=csv" resp, content = drive_service._http.request(downloadUrl)