This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # gsheets.py - download all sheets of a google docs spreadsheet as csv | |
| import os, csv, itertools, contextlib | |
| from apiclient.discovery import build # pip install google-api-python-client | |
| SHEET = '1dR13B3Wi_KJGUJQ0BZa2frLAVxhZnbz0hpwCcWSvb20' | |
| def get_credentials(scopes, secrets='~/client_secrets.json', storage='~/storage.json'): | |
| from oauth2client import file, client, tools |
NewerOlder