Summary:
I have a problem where sometimes the google-drive-sdk file for python does not detect the end of the exported document. The Google doc seems to be infinite in size.
Background, source code and tutorials I adhered to:
I am working on my own google-drive backup based on a python script (with a convenient CLI to view). git source code link
It is still in the process of creation and currently only finds new files and downloads them (with the "pull" command).
In order to run the most important google-drive commands, I followed the official Google manuals for file uploads. here
What works:
When the document or file is a document other than Google, the document is loaded properly. However, when I try to “export” the file. I see that I need to use another mimeType. I have a dictionary for this.
For example: I export application/vnd.google-apps.documentin application/vnd.openxmlformats-officedocument.wordprocessingml.documentwhen exporting a document.
When it downloads google doc documents from Google Drive, it works fine. By this I mean: my while loop with the code status, done = downloader.next_chunk()will have a finite set of doneup trueand loading is completed.
What does not work:
done true script . . , , , . , google-drive . - , ?
Google, .
rakyll" ( , ), -. , .
P.s. , " api" , . , , drive-api .