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.
Note that you must have OpenSSL 1.1 or 1.2. 1.0 does not work.
- Copy
.env.example
to.env
and fill in the values. - Install Python dependencies with
pipenv
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.