如何使用Python访问/下载OneNote笔记本? [英] How to Access/Download OneNote notebook with Python?

查看:543
本文介绍了如何使用Python访问/下载OneNote笔记本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Python访问OneNote笔记本?有没有办法以编程方式将其导出到pdf或其他文件?这些笔记是手工记录的,因此很遗憾,我不能仅将其解析为文本.

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.

我发现此GitHub ,但我不知道如何实现它来完成我的工作想.

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?

推荐答案

如果您的笔记本存储在OneDrive或Office 365中,则可以使用OneNote API来访问它们.有关API的信息位于 http://dev.onenote.com/上.

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/.

有关示例代码,请查看 https://github.com/onenotedev/.有一些示例代码(使用C#和其他语言),使您可以访问Notebooks中的页面.

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.

这篇关于如何使用Python访问/下载OneNote笔记本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆