https://github.com/cppcoffee/klib
kindle note export, support github api.
https://github.com/cppcoffee/klib
kindle
Last synced: about 1 month ago
JSON representation
kindle note export, support github api.
- Host: GitHub
- URL: https://github.com/cppcoffee/klib
- Owner: cppcoffee
- Created: 2020-02-05T08:03:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-10T07:06:02.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T00:46:55.552Z (over 1 year ago)
- Topics: kindle
- Language: Rust
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# klib
The kindle notebook export tool.
## Usage
supports two usages:
- export to a directory (each ebook marked with a file).
- sync Github repository.
```shell
% ./klib --help
klib 0.1.0
the kindle notebook export tool.
USAGE:
klib [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-i, --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.
```
### Subcommand
#### Export to directory
use **path** subcommand
**--outdir**: directory path param, each ebook marked save to independent file, file name use ebook name + .md
```shell
$ ./klib -i ~/Download/MyClippings.txt path --outdir ~/kindle_notes/
```
#### Sync Github
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.
```shell
% ./klib -i ~/Desktop/MyClippings.txt github --owner cppcoffee --repo kindle_bookmark --token xxxxxxxxxx
```
The Github sync notes example: https://github.com/cppcoffee/kindle_bookmark