Reckless

Ruby client to Chicago's records store Reckless.com

Installation

Add it to your Gemfile:

gem "reckless"

Or install it manually:

gem install reckless

Usage

See examples:

require "reckless"

# Search for records
search = Reckless.search("Nirvana")
search = Reckless.recent_arrivals

# Get search details
search.url           # http://www.reckless.com/index.phpkeywords=&format=&cond=&store=&is_search=true&srch=Search
search.total_pages   # 15
search.total_results # 450
search.page          # 1
search.results       # returns an array of results

Each search result is a simple hash:

{
  :artist    => "13th Floor Elevators",
  :title     => "Easter Everywhere (180g, Reissue)",
  :label     => "International Artist",
  :price     => 11.99,
  :type      => "New LP",
  :condition => "Good Condition",
  :store     => "Milwaukee Ave"
}

Search options

  • page - Specify a page to fetch. Defaults to 1
  • format - Choose record format: LP, CD, DVD. Defaults to LP
  • store - Choose store: Broadway, Milwaukee or Loop. Does not have a default.

Testing

Execute test suite:

bundle exec rake test

License

The MIT License (MIT)

Copyright (c) 2014 Dan Sosedoff, [email protected]