forked from tanaikech/goodls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
38 lines (22 loc) · 1.48 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
Package main (doc.go) :
This is a CLI tool to download shared files from Google Drive.
We have already known that the shared files on Google Drive can be downloaded without the authorization. But when the size of file becomes large (about 40MB), it requires a little ingenuity to download the file. It requires to access 2 times to Google Drive. At 1st access, it retrieves a cookie and a code for downloading. At 2nd access, the file is downloaded using the cookie and code. I created this process as a CLI tool. This tool has the following features.
- Use suitable process for size and type of file.
- Retrieve filename and mimetype from response header.
- Can download all shared files except for project files.
- By using API key, goodls can download all files in a shared folder.
- By using API key, goodls can run the resumable download of files.
---------------------------------------------------------------
# How to Install
Download an executable file of goodls from https://github.com/tanaikech/goodls/releases
or
Use go get.
$ go get -u github.com/tanaikech/goodls
# Usage
You can use this just after you download or install goodls. You are not required to do like OAuth2 process.
$ goodls -u [URL of shared file on Google Drive]
If you use API key, you can download all files in a shared folder.
$ goodls -u [URL of shared folder on Google Drive] -key [API key]
---------------------------------------------------------------*/
package main