Exports Trello Board, Cards and attachments.
With a Trello 'free plan' we can only export a board or card to JSON... nothing else. For my personnal use, I wrote this python script to be able to easily extract boards, cards and attachments.
This script,
- exports Board to XLSX document
- exports all cards on the Board to DOCX or PDF documents
- exports all attachments
- Python 3
- docxtpl (https://pypi.org/project/docxtpl/)
- python-dateutil (https://pypi.org/project/python-dateutil/)
- requests (https://pypi.org/project/requests/)
- XlsxWriter (https://pypi.org/project/XlsxWriter/)
- xhtml2pdf (https://xhtml2pdf.readthedocs.io/en/latest/)
- markdown (https://python-markdown.github.io/index.html)
pip install -r requirements.txt
- Get your api key : https://trello.com/app-key
- Generate a (read only) token : https://trello.com/1/authorize?expiration=30days&scope=read&response_type=token&name=PersonalToken&key={YourAPIKey}
To revoke a token : https://trello.com/my/account
config.ini
is a basic configuration file containing:
[Dates]
: time zone and date format[TrelloApi]
: api key, token, url[Proxy]
: proxy configuration[Labels]
: custom titles[Template]
: docx template (export as docx) / html template (export as pdf)
Copy the config-sample.ini
to config.ini
- add your api key and token
- customize dates, proxies, labels and template document
See templates in templates/
Simply run
python3 trello-export-board.py
Then select a board and enjoy !