Giter Site home page Giter Site logo

export_kobo's Introduction

export-kobo

A Python tool to export annotations and highlights from a Kobo SQLite file.

Usage

$ # export kobo highlights and annotations to notion
$ python3 export.py -t export

$ # get book titles from kobo and write to "title.txt"
$ python3 export.py -t getBooks

Installation

  1. After clone the repo, create a virtual environment and install necessary library

    $ pipenv shell
    $ pipenv install
  2. Copy in the same directory the KoboReader.sqlite file from the .kobo/ hidden directory of the USB drive that appears when you plug your Kobo device to the USB port of your PC. You might need to enable the View hidden files option in your file manager to see the hidden directory. For examp, in mac system, the path would be /Volumes/KOBOeReader/.kobo/KoboReader.sqlite

  3. Modify .env.example to .env and setup Notion related environment variable NOTION_KEY and NOTION_DB_ID

  4. Config config.json. List books title which you plan to export annotations and highlights, For example

    "title":[
        "明日,明日,又明日"
    ]
    
  5. Run the script

    $ python3 export.py -t export

License

export-kobo is released under the MIT License.

export_kobo's People

Contributors

starsdog avatar

Stargazers

Tweizh avatar

Watchers

 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.