Python: download files from google drive using url

前端 未结 9 1371
眼角桃花
眼角桃花 2020-11-27 11:51

I am trying to download files from google drive and all I have is the drive\'s URL.

I have read about google API that talks about some drive_service and

9条回答
  •  醉话见心
    2020-11-27 12:24

    You can install https://pypi.org/project/googleDriveFileDownloader/

    pip install googleDriveFileDownloader

    And download the file, here is the sample code to download

    from googleDriveFileDownloader import googleDriveFileDownloader
    a = googleDriveFileDownloader()
    a.downloadFile("https://drive.google.com/uc?id=1O4x8rwGJAh8gRo8sjm0kuKFf6vCEm93G&export=download")
    

提交回复
热议问题