- Python 3.9+
- BookStack API token (token id + token secret)
- BookStack URL
- Create a virtual environment
python -m venv .venv
source .venv/bin/activate- Install dependencies
pip install -r requirements.txt- Create a
.envfile (or update it) at the project root:
BOOKSTACK_URL=your_bookstack_url
BOOKSTACK_TOKEN_ID=your_token_id
BOOKSTACK_TOKEN_SECRET=your_token_secretpython export_pages.pyPDFs will be saved to exports/