Download google drive public shared file in terminal

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





原文地址:https://www.cnblogs.com/zwCHAN/p/4831109.html