This gem uses mechanize to scrape content from shelfari.com and simulate an API, because currently there is no official one. Given the nature of obtaining the data, things might break often, so use at your own risk.
Methods
book_by_id(id)
book_by_isbn(isbn)
user(username)
now_reading(username)
Installation
gem install shelfari
Usage
require 'shelfari'
library = Shelfari.new
Get info about a book
myBook = library.book(5831441)
This returns the following JSON
{
"bookid": "5831441",
"editionid": "7405802",
"title": "The Girl Who Kicked the Hornet's Nest",
"author": "Stieg Larsson",
"cover": "http://ecx.images-amazon.com/images/I/41BHhplwx0L._SL236.jpg",
"url": "http://www.shelfari.com/books/5831441/The-Girl-Who-Kicked-the-Hornets-Nest"
}
License
This library is distributed under the MIT license. Please see the LICENSE file.