You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#!/usr/bin/env python3 # script to print all the Kobo highlights in a human readable fashion
import sys import xml.etree.ElementTree as ET
tree = ET.parse(sys.argv[1]) root = tree.getroot()
for annotation in root: for target in annotation: for fragment in target: for text in fragment: print("-", text.text)
|