file download from google drive to colaboratory

后端 未结 7 2157
遇见更好的自我
遇见更好的自我 2021-02-05 12:22

I was trying to download file from my google drive to colaboratory.

file_id = \'1uBtlaggVyWshwcyP6kEI-y_W3P8D26sz\'

import io
from googleapiclient.http import M         


        
7条回答
  •  悲哀的现实
    2021-02-05 13:00

    You can also use my implementations on google.colab and PyDrive at https://github.com/ruelj2/Google_drive which makes it a lot easier.

    !pip install - U - q PyDrive  
    import os  
    os.chdir('/content/')  
    !git clone https://github.com/ruelj2/Google_drive.git  
    
    from Google_drive.handle import Google_drive  
    Gd = Google_drive()  
    Gd.load_file(local_dir, file_ID)
    

提交回复
热议问题