An easy-to-use tool to export all the notes from your Apple Notes database to markdown and csv files.
Please remember to grant full disk access to the terminal or IDE that you're using to run this script.
Otherwise, the script won't get the authorization to access your apple notes database.
Go to > System Preference > Security & Privacy
Select "Full Dish Access" in the left column and check the box beside the specific terminal or IDE that you're using
Use argument --directory to specify the path to save your markdown files.
If not specified, it would create a new directory called notes
by default.
$ python3 notes_export.py
After running the command, there will be a prompt for you to input your password in case there are locked notes.
- Markdown files for each note, including its creation & modification date (under the subdirectory of its folder name)
- CSV files for notes metadata (under a
raw_data
sub-folder)