Skip to content

Utility for exporting OneNote content to Obsidian-compatible Markdown files

Notifications You must be signed in to change notification settings

brucificus/onenote-to-markdown

 
 

Repository files navigation

onenote-to-markdown

Pre-requisites

  • You must have Pandoc installed on your system and accessible in your system PATH. Check by running pandoc --version in a PowerShell or cmd window.
  • You must have Python 3 installed on your system. This README assumes it is accessible via python, but other aliases, such as python3, are fine.

Instructions

Video/blog post: https://pagekeytech.com/blog/misc/onenote-to-markdown-python

  1. Install the requirements.
pip install -r requirements.txt
  1. Open OneNote and ensure the notebook you'd like to convert is open.

  2. Run the script.

python convert.py
  1. Find your converted notes in ~/Desktop/OneNoteExport. You're free to do what you want with the notes now - commit them to Git, open them in obsidian, or whatever.

Troubleshooting

AttributeError: module 'win32com.gen_py... has no attribute 'CLSIDToClassMap'

Try this link, and this one. In short:

  1. Run python3 to get an interpreter and execute:
import win32com
print(win32com.__gen_path__)
  1. Delete the gen_py folder indicated in the output of the previous step.

About

Utility for exporting OneNote content to Obsidian-compatible Markdown files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%