Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fizker/google-drive-downloader

Lists and downloads files from google drive
https://github.com/fizker/google-drive-downloader

Last synced: 4 days ago
JSON representation

Lists and downloads files from google drive

Awesome Lists containing this project

README

        

google-drive-downloader
=======================

Lists and downloads files from google drive. It can easily filter files on date
and find a specific sub-folder to iterate through.

Node 4+ only
-----------

0.2+ runs on Node 4+ only. It can run on older Node.js through
[Babel](https://babeljs.io).

As an alternative, install the 0.1 version range. It functions on older versions
of Node.

Auth setup
----------

You can find info on creating credentials at
[the github page for googleauth](https://github.com/maxogden/googleauth), the
module handling the auth-stuff.

Usage
-----

export GOOGLEAUTH_CLIENT=.apps.googleusercontent.com
export GOOGLEAUTH_SECRET=

google-drive-downloader

If the program is run without a command or with an invalid command, it will show
a help-message. This can also be shown by adding `--help`, which will also show
the available options for individual commands (eg.
`google-drive-downloader list-files --help`)

Available commands
------------------

### ls

... ls [options...]

The `path` parameter is the path for which to list files. To list the files in
the root folder, run `google-drive-downloader ls /`.

The path-matching is case-sensitive.

#### Available options

- `--modified-after` / `-m`: json date, it will only return files modified
after this date.

### get-all

... get-all [options...]

The `path` parameter is the path for which to download files. To download the
files in the root folder, run `google-drive-downloader ls /`.

#### Available options

- `--modified-after` / `-m`: json date, it will only return files modified
after this date.
- `--output-dir` / `-o`: The folder to download to. The default is the current
folder.