@@ -0,0 +1,1513 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%22%22%22%0AUsage: python get_gdrive_credentials.py PATH_TO_SECRET_FILE%0A%0AThe purpose of this script is to create google login credentials to be used by google drive%0Awriter.%0A%0AExpected workflow is:%0A%0A1.- Get the client secret file. If you haven't one, please follow this tutorial:%0Ahttps://developers.google.com/drive/web/quickstart/python%0A%0A2.- Execute this script. It will open a browser tab in which you have to login with your%0AGoogle account. It will create a credentials file (file path will be printed).%0A%0A3.- You can use the info contained in both files to configure a export using google%0Adrive writer.%0A%22%22%22%0A%0Afrom __future__ import print_function%0Aimport os%0Aimport tempfile%0Afrom pydrive.auth import GoogleAuth%0A%0A%0Adef parse_args():%0A    import argparse%0A    parser = argparse.ArgumentParser(description=__doc__)%0A    parser.add_argument('client-secret', help='Client Secret file identifying user')%0A    parser.add_argument('--output', help='Path to Credentials File with authorization code')%0A    args = parser.parse_args()%0A    if not args.output:%0A        args.output = tempfile.mkdtemp()%0A    return args%0A%0Adef run(args):%0A    gauth = GoogleAuth()%0A    gauth.LoadClientConfigFile(args.client_secret)%0A    gauth.LocalWebserverAuth()%0A    credentials_file = os.path.join(args.dest, 'gdrive-credentials.json')%0A    gauth.SaveCredentialsFile(credentials_file)%0A    print('Credentials file saved to %7B%7D'.format(credentials_file))%0A%0Aif '__main__' == __name__:%0A    args = parse_args()%0A    run(args)%0A

Add script to assist in Gdrive Credentials.