Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

shelfari

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shelfari

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Code Climate
Build Status

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) #returns information about a book based on id
book_by_isbn(isbn) #returns information about a book based on isbn
user(username) #returns user details
now_reading(username) #returns the books the user is currently reading
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.

FAQs

Package last updated on 24 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc