Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyamaguchi/tsundoku
Manage pile of books
https://github.com/kyamaguchi/tsundoku
amazon books kindle
Last synced: about 2 months ago
JSON representation
Manage pile of books
- Host: GitHub
- URL: https://github.com/kyamaguchi/tsundoku
- Owner: kyamaguchi
- Created: 2017-03-24T02:20:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T03:37:49.000Z (8 months ago)
- Last Synced: 2024-05-22T04:28:19.421Z (8 months ago)
- Topics: amazon, books, kindle
- Language: Ruby
- Size: 440 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tsundoku 積読
Manage pile of unread books
["Tsundoku"](https://en.wikipedia.org/wiki/Tsundoku) From Wikipedia
[Tsundoku: Japan's Word for 'Books You Buy But Don't Read'](https://www.tofugu.com/japanese/tsundoku/)![books-922321_1280](https://cloud.githubusercontent.com/assets/275284/25094616/f7640402-23d2-11e7-96b8-24c22c435745.jpg)
## Sites
Currently, Kindle(Amazon) books are only supported.
## Setup
### Setup db
```
bundle
rails db:migrate
```### Setup fetching of kindle books data (kindle_manager gem)
See [amazon_auth gem](https://github.com/kyamaguchi/amazon_auth) and [kindle_manager gem](https://github.com/kyamaguchi/kindle_manager)
[chromedriver](https://sites.google.com/a/chromium.org/chromedriver/downloads) is required. Please [download chromedriver](http://chromedriver.storage.googleapis.com/index.html) and update chromedriver regularly.
```
amazon_auth
vi .envrails console
```On console
```
client = KindleManager::Client.new(debug: true)
client.fetch_kindle_list
books = client.load_kindle_books
```### Run Rails app
```
rails server
```### How to manage books
You can manage books with adding tags to books.
You can find some filters(Read, Reading, Hope to read) in https://kindle.amazon.co.jp/your_reading .Example of tags:
- Checked - The books you managed their tags
- Hope to read
- ReadThe task `rails tags:guess_from_title` will add the following tags and some guessed tags.
- Sample
- Owner - Owner library## Update books
```
rails kindle:fetch
rails kindle:import
rails tags:guess_from_title
```Fetch all kindle books data with new download directory.
```
rails kindle:fetch[10000,true]
```### Using envchain
`envchain` can be used to secure credentials
See https://github.com/kyamaguchi/amazon_auth#envchain-for-security
```
envchain amazon rails kindle:fetch
envchain amazon rails kindle:importenvchain amazon rails console
```## TODO
- Update tags without reloading page
- Update(fetch) books based on last update
- Import books data from several services