juhalehtonen / planmill2sheets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PlanMill2Sheets

This tool fetches a JSON response from the PlanMill Opportunities API, converts it to CSV format, and uploads it to a configured Google Spreadsheet.

Note that this tool writes over all previous data in the configured Spreadsheet, so some caution should be taken when running this.

Setup

Note that you must have OpenSSL 1.1 or 1.2. 1.0 does not work.

  1. Copy .env.example to .env and fill in the values.
  2. Install Python dependencies with pipenv

Usage

Setup a new app that uses Google Sheets API and download the credentials JSON file into credentials.json. You can do this here.

Use OAuth and set the scopes to allow read/write access to spreadsheets.

Then run pipenv run python3 main.py and you're done. You need to authorize yourself to Google once before.

About


Languages

Language:Python 100.0%