The kindle notebook export tool.
supports two usages:
- export to a directory (each ebook marked with a file).
- sync Github repository.
% ./klib --help
klib 0.1.0
the kindle notebook export tool.
USAGE:
klib [OPTIONS] <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-i, --input <input> Input file [default: /Volumes/Kindle/documents/My Clippings.txt]
SUBCOMMANDS:
github Upload notes to github repository.
help Prints this message or the help of the given subcommand(s)
path Output to the specified directory.use path subcommand
--outdir: directory path param, each ebook marked save to independent file, file name use ebook name + .md
$ ./klib -i ~/Download/MyClippings.txt path --outdir ~/kindle_notes/use github subcommand
The function use Github API (https://developer.github.com/v3/repos/contents/#create-or-update-a-file) to create and update repo notes. program skip no modify notes.
--owner: repository owner name.
--repo: repository name.
--token: Github OAuth2 token.
% ./klib -i ~/Desktop/MyClippings.txt github --owner cppcoffee --repo kindle_bookmark --token xxxxxxxxxxThe Github sync notes example: https://github.com/cppcoffee/kindle_bookmark