Skip to content

Instantly share code, notes, and snippets.

@da-luggas
da-luggas / high-lighter.py
Created October 24, 2023 12:15
Export all highlights and notes from apple books on macos
import sqlite3
import glob
import csv
import os
def get_annotation_db_path():
pattern = os.path.expanduser("~/Library/Containers/com.apple.iBooksX/Data/Documents/AEAnnotation/AEAnnotation*.sqlite")
return glob.glob(pattern)[0]
def get_library_db_path():