项目作者: kyamaguchi

项目描述 :
Manage pile of books
高级语言: Ruby
项目地址: git://github.com/kyamaguchi/tsundoku.git
创建时间: 2017-03-24T02:20:11Z
项目社区:https://github.com/kyamaguchi/tsundoku

开源协议:

下载


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

  1. bundle
  2. 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.

  1. amazon_auth
  2. vi .env
  3. rails console

On console

  1. client = KindleManager::Client.new(debug: true)
  2. client.fetch_kindle_list
  3. books = client.load_kindle_books

Run Rails app

  1. 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

  1. rails kindle:fetch
  2. rails kindle:import
  3. rails tags:guess_from_title

Fetch all kindle books data with new download directory.

  1. rails kindle:fetch[10000,true]

Using envchain

envchain can be used to secure credentials

See https://github.com/kyamaguchi/amazon_auth#envchain-for-security

  1. envchain amazon rails kindle:fetch
  2. envchain amazon rails kindle:import
  3. envchain amazon rails console

TODO

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