Code Monkey home page Code Monkey logo

onenote-dump's Introduction

Onenote转为Markdown文本

Requirement

  • Python 3
  • Some Packages

1. Overview

在github上看到一个项目,是将Onenote笔记转为Markdown文本的。将Onenote转换成Markdown后,可以将自己的Onenote笔记发布在CSDN、github等平台。我自己几乎所有的笔记都是在Onenote上,所以看到这个项目觉得很好用,分享给大家。

github项目地址:https://github.com/HuimingPan/onenote-dump

2.Illustration

  1. 配置环境。主要是需要安装Python和一些包,具体需要哪些包可以在使用程序转换程序 onenote-dump 后根据错误提示来安装。建议在Anaconda创建一个新的环境,然后再Anaconda中打开Terminal。需要的库在Anaconda中都有。

  2. 打开命令提示符(cmd.exe),将目录转换到"onenote-dump"文件夹的上一级目录,也就是如图所示位置; 在这里插入图片描述

  3. cmd中输入命令:

    python onenote-dump <notebook> <output directory>
    

    其中,“notebook”——笔记本名;“output directory”——文档输出地址; 比如:

    python onenote-dump "Software Development Notes" C:\Temp\dump
    
  4. 授权 在运行上述命令后,会打开一个浏览器页面,输入自己的Microsoft账号和密码,使脚本有权访问Onedrive中的有关笔记本。在第一次授权之后,可以不需要再次授权。

  5. 笔记转换 授权完成后,程序将会将你的笔记本转换承.md文件,并保存在<output directory>处。

3.Attention

  • 每一个md文件是一个Onenote页,而非一整个笔记本或者分区;
  • 程序对公式的转换性能不佳。 在这里插入图片描述 在这里插入图片描述

onenote-dump's People

Contributors

genericmoniker avatar huimingpan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.