Skip to content

Uses Trello API to get board and card data in json format

Notifications You must be signed in to change notification settings

jstucken/trello-api-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

trello-api-scraper

Uses the Trello API to get board and card data in json format.

This script gets the number of cards for a particular Trello board and uses CURL requests to pull data using the Trello API. See:

https://stateful.com/blog/trello-api-examples

Tested under Ubuntu 20.04.

Installation

  1. Clone this repo to your local machine.

  2. Install Python Poetry

  3. Install script dependancies with:

sudo poetry install
  1. To automate this script with a CRON job, it's advised to store your Trello API creds in a secure folder e.g. /root/trello_credentials containing the following variables:
TRELLO_API_KEY=xxxxxxxxxxxx
TRELLO_API_TOKEN=xxxxxxxxxxxx
TRELLO_BOARD_ID=xxxxxxxxxxxx

Your Trello board id can be found by putting .json at end of the Trello board URL in your browser e.g.

https://trello.com/b/xxxxxxxx/your-board-name.json

Usage

Run this script as root/sudo user so the script can pull in the trello_credentials correctly. e.g.

sudo poetry run python get_trello_cards.py

About

Uses Trello API to get board and card data in json format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages