首页 > TAG信息列表 > pydrive

python-PyDrive:创建一个Google Doc文件

我正在使用PyDrive在Google云端硬盘中创建文件,但是在使用实际的Google Doc类型项目时遇到了麻烦. 我的代码是: file = drive.CreateFile({'title': pagename, "parents": [{"id": folder_id}], "mimeType": "application/vnd.google-apps.document"}) file.

python – Pydrive错误:没有在元数据中找到的mimetype的downloadLink / exportLinks

我试图使用pydrive模块为python自动从谷歌驱动器下载一个简单的文本文件.我一直收到以下错误: Traceback (most recent call last): File “C:\GIS\AVGOPS\Scripts\GoogleDrive_Test.py”, line 20, in item.GetContentFile(r’C:\Users\pfilyer\Desktop\googedrive\’

python – 有什么方法可以让PyDrive记住用户的身份验证吗?

我使用Python和PyDrive制作了一个程序.该程序捕获图像并将其上传到Google云端硬盘上的文件夹.这是我的身份验证和上传的基本代码: gauth = GoogleAuth() drive = GoogleDrive(gauth) file_image = drive.CreateFile({"parents": [{"kind": "drive#fileLink","id": upload_folder_i

python – 在colaboratory中从驱动器加载xlsx文件

如何从谷歌驱动器导入MS-excel(.xlsx)文件到colaboratory? excel_file = drive.CreateFile({'id':'some id'}) 确实有效(驱动器是pydrive.drive.GoogleDrive对象).但, print excel_file.FetchContent() 返回无.和 excel_file.content() 抛出: TypeErrorTraceback (most recen

python – 一些请​​求后超过了用户速率限制

我通过pydrive使用Google Drive API在两个Google云端硬盘帐户之间移动文件.我一直在测试一个包含16个文件的文件夹.我的代码总是在第六个文件中引发错误 “User rate limit exceeded”> 我知道请求数量有限制(10 / s或1000 / 100s),但我已尝试使用Google Drive API建议的exponen