项目作者: baltimore-sun-data

项目描述 :
Save all sheets in a Google Sheets doc as multiple CSV files
高级语言: Go
项目地址: git://github.com/baltimore-sun-data/sheets-save-all.git
创建时间: 2018-04-23T19:57:23Z
项目社区:https://github.com/baltimore-sun-data/sheets-save-all

开源协议:MIT License

下载


sheets-save-all

Save all sheets in a Google Sheets doc as CSV. Requires an OAuth 2.0 token to access Google Sheets.

Installation

First install Go.

If you just want to install the binary to your current directory and don’t care about the source code, run

  1. GOBIN="$(pwd)" GOPATH="$(mktemp -d)" go get github.com/baltimore-sun-data/sheets-save-all

Usage

  1. $ sheets-save-all -h
  2. sheets-save-all is a tool to save all sheets in Google Sheets document.
  3. -path and -filename are Go templates and can use any property of the document
  4. or sheet object respectively. See gopkg.in/Iwark/spreadsheet.v2 for properties.
  5. Usage of sheets-save-all:
  6. -client-secret string
  7. Google client secret (default $GOOGLE_CLIENT_SECRET)
  8. -crlf
  9. use Windows-style line endings
  10. -filename string
  11. file name for files (default "{{.Properties.Index}} {{.Properties.Title}}.csv")
  12. -path string
  13. path to save files in (default "{{.Properties.Title}}")
  14. -quiet
  15. don't log activity
  16. -sheet string
  17. Google Sheet ID