Skip to content

Google Sheets integrations that conforms to the Singer.io specification (WIP)

Notifications You must be signed in to change notification settings

shaunymca/tap_sheets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Sheets Tap

This is a Singer.io compliant (not yet) tap to stream data from Google Sheets to a Singer target.

Running it locally

Step 1: Configure

Create a file called config.json in your working directory, following config.sample.json.

Step 2: Activate the Google Sheets and Drive APIs

(originally found in the Google API docs)

  1. Create a project here

  2. Add the Google Sheets and Google Drive services from the library to the project

  3. In the credentials section, add OAUTH credentials, and select "web application" as the application type.

  4. Download the client id and secret and add them to the config.json file.

  5. Navigate to the Google Oauth 2.0 playground

  6. In the gear dropdown, choose "offline", and tick off the Use your own credentials

  7. Select the Drive Readonly API, and make sure that the Sheets API is selected also. Then click Authorize APIs

  8. Once you've logged in with a google account, click the Exhange authorization code for tokens button. Take the refresh token and place it into your config.json file.

Step 3: Install the tap and run in discovery mode

  1. Run python3 setup.py develop, this will install the tap
  2. Run tap-sheets --discover --config config.json > properties.json, this will show the names and ids of your spreadsheets available. Use some of these to populate the properties.json file
  3. Run tap-sheets --config config.json --properties properties.json, this will run the tap and give the current, non-singer compliant output.

About

Google Sheets integrations that conforms to the Singer.io specification (WIP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages