Skip to content

kyamaguchi/tsundoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tsundoku 積読

Manage pile of unread books

"Tsundoku" From Wikipedia
Tsundoku: Japan's Word for 'Books You Buy But Don't Read'

books-922321_1280

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 and kindle_manager gem

chromedriver is required. Please download chromedriver and update chromedriver regularly.

amazon_auth
vi .env

rails 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 .
kindle_your_reading_filter

Example of tags:

  • Checked - The books you managed their tags
  • Hope to read
  • Read

The task rails tags:guess_from_title will add the following tags and some guessed tags.

  • Sample
  • Owner - Owner library

example_of_tags

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:import

envchain amazon rails console

TODO

  • Update tags without reloading page
  • Update(fetch) books based on last update
  • Import books data from several services