Kobo-Highlights is a tool to export the highlights you made on your Kobo e-book reader to different formats. Right now it supports exports to Notion and Markdown.

Installation

Install using the binary of your choice:

curl -L -o kobo-highlights https://github.com/ozmodiar/kobo-highlights/releases/latest/download/kobo-highlights_darwin_arm64
chmod +x kobo-highlights

Kobo database

Optionally copy the database of your Kobo device to your local machine.
On macOS, this should be something like:

cp /Volumes/KOBOeReader/.kobo/KoboReader.sqlite ./KoboReader.sqlite

Try it out

./kobo-highlights --kobo-db ./KoboReader.sqlite --list-formats
Available formats:
  - notion
  - markdown

Export to Markdown

mkdir markdown
./kobo-highlights --kobo-db ./KoboReader.sqlite --format markdown --markdown-dir ./markdown/

Check the markdown folder to find the highlights for each book there.