Project

booksr

0.0
No commit activity in last 3 years
No release in over 3 years
Search book with title, author, isbn or keyword by Google Book API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Booksr

Build Status

A simple book searcher in Ruby.

Installation

gem install booksr

Usage

books = Booksr.search(query_string, query_type)

query_type can be:

  • :title
  • :author
  • :isbn
  • :keyword

default is :keyword.

query_string of :isbn can be ISBN10 or ISBN13.

Return value is array of Book which can retrieve book information.

Attributes of class Book:

  • title
  • subtitle
  • authors: array
  • publisher
  • published_date
  • description
  • isbn10
  • isbn13
  • page_count
  • lang

Example

require 'booksr'

books = Booksr.search('Ruby on Rails', :title)
book = books[0]

puts book.title
puts book.authors    # authors is a array
puts book.subtitle