Created
September 17, 2021 22:22
-
-
Save pauldowman/011ab93dc2a0a005b6801e56c5f865de to your computer and use it in GitHub Desktop.
Kobo highlight exporter script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
KOBO_ROOT="$1" # The root of the mounted Kobo volume | |
HIGHLIGHTS_FILE="$2" # The output | |
sqlite3 "$KOBO_ROOT/.kobo/KoboReader.sqlite" << ENDSQL | |
.mode csv | |
.output $HIGHLIGHTS_FILE | |
.print "Title,Author,Date,Highlight" | |
select content.Title, content.Attribution, Bookmark.DateCreated, Bookmark.Text from Bookmark left join content on Bookmark.VolumeID = content.ContentID where Text is not null; | |
.quit | |
ENDSQL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a bash script to export Kobo highlights in a format that can be imported into https://readwise.io/
Usage example:
export-kobo-highlights.sh /Volumes/KOBOeReader highlights.csv
Tested (not very much) on a Kobo Elipsa.