过雁

--每天都被梦想唤醒--

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
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





posted on 2015-09-23 04:47  过雁  阅读(613)  评论(0编辑  收藏  举报