Git Product home page Git Product logo

leanote4md's Introduction

title: Leanote导入导出MD工具 date: 2015/04/01 15:43:41 updated: 2015/04/01 15:48:15 categories:

  • 代码 tags:
  • Python
  • Leanote

#leanote导入导出MD工具

  • 可以把你储存在Leanote上的笔记、文章都导出成Markdown文件、文本文件
  • 也可以把你储存在硬盘的Markdown文件、文本文件都导入到Leanote上去
  • 目前支持导入导出含YAML格式的meta信息的文件,参照 hexo 的文件格式,也就是说文件头部可以有title tags date categoris等meta信息
  • 兼容官方网站,以及自建的服务器(基于beta4,以及API 0.1版本)

#如何使用

  • 首先安装Python2版本
  • 确保机器已经安装 requests Pillow PyYaml requests_toolbelt 等模块,如果没装请 pip install
  • 然后在命令行执行python leanote4MD.py
    • 如果报错,应该是你的 python 路径问题,或者缺少某些python module
  • 根据提示输入域名(默认是http://leanote.com)、用户邮箱、密码
    • 域名不要忘记加http://
    • 如果是自建服务器,请保证版本不低于 beta4
    • 记得用邮箱,而不是用户名
  • 一般导入的错误都是文件没有严格按照YAML格式(多余空格等)造成的解析错误

#功能

  • 从Leanote导入、导出笔记本/子笔记本到MD或txt文本文件
  • 保存为兼容 hexo front matter 的tag、category、date、title等
    • 由于0.1版本API限制,导入时暂时无法设置 保存时间、修改时间
  • 只导入、导出不在垃圾箱的笔记
  • 数不尽的bug
  • 根据是否为已发布的blog,生成post或者draft属性
  • 导出时保存图片到本地
  • 导入时提交图片到服务器

leanote4md's People

Contributors

goodbest avatar svtter avatar wwj718 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.