Giter Site home page Giter Site logo

laharah / leanote2md Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gaunthan/leanote2md

0.0 2.0 0.0 22 KB

Export all you Markdown notes in Leanote (a.k.a 蚂蚁笔记) to local Markdown files.

License: GNU General Public License v3.0

Python 100.00%

leanote2md's Introduction

leanote2md

Export all you Markdown notes in Leanote (a.k.a 蚂蚁笔记) to local Markdown files.

Prerequisite

  • Python 3
  • pip3
  • git

Dependencies

Use your pip tool to install the dependencies

  • anytree
  • requests

You can install these packages by this command

pip3 install anytree requests --user

Usage

Clone this repo, and run the exporter.py script. You can easily do this by running the following command on your terminal

git clone https://github.com/gaunthan/leanote2md.git
cd ./leanote2md
chmod +x exporter.py
./exporter.py

If you don't want to save your notes interactively, you need to modify config.py and run exporter.py with command argument config.py

./exporter.py config.py

Exporting leanote notes to joplin

leanote exporting is a clusterfuck and you always lose creation times and media resources. Here's the steps to export the notes so they can be imported correctly as joplin markdown notes.

  1. run export.py and download the leanote markdown notes (fill in config for convenience)

  2. import markdown directories into joplin

  3. from leanote export each notebook 3 times to their same folder (leanote, evernote enex, and html)

  4. run leanote_fixer.py on an exported notebook folder

  5. use joplin to import the generated full_notebook.enex to import the notebook

  6. merge the full_notebook notes into the downloaded markdown notebooks, and then delete the empty notebook afterward.

  7. repeat steps 4-6 on remaining exported notebook folders.

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.