[英]Download Files From Google Drive Using Python
I want to download file from google drive directly using python.我想直接使用 python 从谷歌驱动器下载文件。 I had tried many module's like pydrive, google drive API, gdown, googledrivefiledownloader and many more but it always throw me error.
我尝试过许多模块,如 pydrive、google drive API、gdown、googledrivefiledownloader 等等,但它总是让我出错。 When i use gdown module to download any type of file it's work perfectly but when i open that downloaded file it's show file is not supported.
当我使用 gdown 模块下载任何类型的文件时,它工作得很好,但是当我打开下载的文件时,它的显示文件不受支持。
I had tried this code as following我试过这个代码如下
Try this code:-试试这个代码: -
from zdrive import Downloader
output_directory = "/home/abhinav/Documents"
d = Downloader()
# folder which want to download from Drive
folder_id = 'XXXX-YYYY-ZZZZ'
d.downloadFolder(folder_id, destinationFolder=output_directory)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.