Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hhatto/klip
Go parser for the Kindle's clippings.txt file
https://github.com/hhatto/klip
Last synced: about 1 month ago
JSON representation
Go parser for the Kindle's clippings.txt file
- Host: GitHub
- URL: https://github.com/hhatto/klip
- Owner: hhatto
- Created: 2015-01-20T16:57:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-27T08:12:06.000Z (over 9 years ago)
- Last Synced: 2024-05-09T21:57:01.853Z (6 months ago)
- Language: Go
- Size: 180 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# klip [![Build Status](https://travis-ci.org/hhatto/klip.png?branch=master)](https://travis-ci.org/hhatto/klip)
Go Parser for Amazon Kindle's clippings.txt file.***this module ALPHA version***
## Installation
```sh
go get github.com/hhatto/klip
```## Usage
```go
package mainimport (
"fmt"
"os""github.com/hhatto/klip"
)func main() {
clips, _ := klip.Load(os.Args[1])
for i := range clips {
if clips[i].Meta.Type != klip.Highlight {
continue
}
fmt.Printf("title : %s\n", clips[i].Title)
fmt.Printf("author : %v\n", clips[i].Author)
fmt.Printf("content: %v\n", clips[i].Content)
fmt.Println("===")
}
}
```## License
MIT