This repository includes a few python export tools for Apple's "Notes.app". The scripts require python3, but I tried to make the scripts self-contained and concise, with no additional dependencies. I may revisit this and break the common code into a library in the future.
This repository is in the public domain.
Description of how notes data is stored.
Writes a notes.bearbk file in Bear's backup format (a zip file with their own markup flavor). It doesn't handle tables because Bear doesn't do tables yet. This shaves about 100 lines from the script.
Exports notes to tree of html files and images. One html file per note and any associated media in the media directory. It will convert tables and also tries to export drawings as svg. (Notes also provides a jpg rendering that I use in notes2bear
.)