Home > Blockchain >  Download Files From Google Drive Using Python
Download Files From Google Drive Using Python

Time:05-19

I want to download file from google drive directly using python. I had tried many module's like pydrive, google drive API, gdown, googledrivefiledownloader and many more but it always throw me error. 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.

I had tried this code as following

This is following code and output

CodePudding user response:

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)
  • Related