码迷,mamicode.com
首页 > 其他好文 > 详细

Download google drive public shared file in terminal

时间:2015-09-23 06:43:56      阅读:153      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!