How to Access/Download OneNote notebook with Python?

余生颓废 提交于 2019-12-19 06:18:36

问题


How do I access a OneNote notebook using Python? Is there a way to export it to a pdf or other file programmatically? The notes are taken by hand, so I unfortunately can't just parse it for text.

I've found this article from 2011, but the links are dead and I imagine it would be outdated anyway. I've also found this GitHub but I don't see how to implement it to do what I want.

Alternatively, is there another language I could use?


回答1:


If your notebooks are stored in OneDrive or Office 365, you can use the OneNote APIs to access them. Information about the APIs are on http://dev.onenote.com/.

For sample code, check out https://github.com/onenotedev/. There is sample code (in C# and other languages) that allows you to access pages in Notebooks.



来源:https://stackoverflow.com/questions/34622471/how-to-access-download-onenote-notebook-with-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!