How to download file from google drive

If one file is named https://drive.google.com/file/d/1rdEsCUcIUaYOVRkx5IMTRNA7PcGMmSgc/edit

It means its id is 1rdEsCUcIUaYOVRkx5IMTRNA7PcGMmSgc

 

Then 

$  pip install gdown   

(or $ pip install --ignore-installed --no-cache-dir gdown )

$ gdown https://drive.google.com/uc?id=1rdEsCUcIUaYOVRkx5IMTRNA7PcGMmSgc

 

Reference: https://stackoverflow.com/questions/25010369/wget-curl-large-file-from-google-drive

 

 

 

Or using wget 

https://drive.google.com/file/d/1blJQDQSlLPU6zX3yRmXODRwkcss6B3aa/view?usp=sharing

https://drive.google.com/u/0/uc?id=1blJQDQSlLPU6zX3yRmXODRwkcss6B3aa&export=download

 


wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=1blJQDQSlLPU6zX3yRmXODRwkcss6B3aa' -O xxx.txt

posted on 2020-08-06 15:55  cdekelon  阅读(347)  评论(0编辑  收藏  举报

导航