A Python tool to extract and export highlights from Kobo e-readers.
- Extract highlights from Kobo devices
- Export highlights to TXT, JSON, CSV, and SQLite formats
- List books with highlights
- Count total highlights and books with highlights
- Backup Kobo database
- Clone this repository:
git clone https://github.com/fidacura/kobo-highlights.git
cd kobo-highlights
- Install the required dependencies:
pip install -r requirements.txt
You can use the script directly from the command line:
- Backup the Kobo database:
python kobo_highlights.py --backup backup.sqlite
- List books with highlights:
python kobo_highlights.py --list-books
- Get highlight count:
python kobo_highlights.py --count
- Export highlights (use one or more of --txt, --json, --csv, --sqlite):
python kobo_highlights.py --txt highlights.txt --json highlights.json
- Export highlights for a specific book:
python kobo_highlights.py --book-id [book_id] --csv book_highlights.csv
- Export highlights within a date range:
python kobo_highlights.py --date-from YYYY-MM-DD --date-to YYYY-MM-DD --json date_range_highlights.json
For more options, run:
python kobo_highlights.py --help
To run the tests: python -m unittest discover tests
Contributions are welcome! Feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.