metalsmith-google-drive

nodei.co

npm

github-issues

stars

forks

metalsmith to scrape files from google drive

Highlights:

See the annotated source or github repo

install

npm i --save github:leviwheatcroft/metalsmith-google-drive

usage

api credentials

Follow this guide, go through A to G under Step 1, the downloaded file will contain the credentials you need to pass into this plugin. In these examples I'm using config to store them.

Once you've authed, the token will be printed to console, you can store this token in a config file if you wish, but be aware that it's sensitive so put it somewhere which isn't tracked.

example

Metalsmith('src')
.use(googleDrive({
  auth: config.get('driveAuth'),
  src: '0B1QpLgu4qk48R1hDBi1wWFkyV2s',
  dest: 'articles'
}))
.build( ... )

options

notes

Author

Levi Wheatcroft levi@wht.cr

Contributing

Contributions welcome; Please submit all pull requests against the master branch.

License