![]() ![]() From your question, I thought that the file you want to download is the JSON data.At above script, creds of creds.token is from get_gdrive_service().Sample script: file_id = "#" # Please set the file ID you want to download. In order to retrieve the file content, the method of "Files: get" is used by adding the query parameter of alt=media. For this, the access token is retrieved from creds of get_gdrive_service(). In this case, in order to retrieve the file content to the memory, I would like to propose to retrieve it using requests. You are using the script for authorizing from.You have already been able to use Drive API with googleapis for python.From I need to get a json-file from my GoogleDrive., the file you want to download is the file except for Google Docs files (Spreadsheet, Document, Slides and so on).You want to directly download the file to the memory without creating the data as a file using python. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |