首页 > 其他 > 详细

Download google drive public shared file in terminal

时间:2015-09-23 06:43:39      阅读:363      评论:0      收藏:0      [点我收藏+]
http://unix.stackexchange.com/questions/136371/how-to-download-a-folder-from-google-drive-using-terminal 

I was able to download a public shared file like this:

$ wget --no-check-certificate ‘https://drive.google.com/uc?export=download&id=FILEID‘    -O FILENAME

Where FILEID must be replaced by the actual file ID. FILENAME is the path/filename where download will be stored.

Note you cannot use a folderid instead of fileid. I have used view source in a folder view where I could find the following HTML <div id="entry-0B0jxxycBojSwVW.... The string starting with 0B was the fileid.


This worked great for me! just had to use drive.google.com instead –  thouliha Jun 11 at 14:36 

e.g.:
wget --no-check-certificate ‘https://drive.google.com/uc?export=download&id=0Bze8dEz4G92GZFJVbUlwMlJkOG8‘ -O test.csv





Download google drive public shared file in terminal

原文:http://www.cnblogs.com/zwCHAN/p/4831109.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!