Skip to content

Instantly share code, notes, and snippets.

@hasham2
Created October 26, 2009 09:08
Show Gist options
  • Select an option

  • Save hasham2/218526 to your computer and use it in GitHub Desktop.

Select an option

Save hasham2/218526 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'abebooks4r'
Abebooks4r::Abe.configure do |options|
options[:clientkey] = ABE_ACCESS_KEY
end
Abebooks4r::Abe.debug = true
res = Abebooks4r::Abe.search(:author => 'Brad Ediger', :title => 'Advanced Rails')
unless res.has_error?
res.books.each do |book|
puts book.get('title')
puts book.get('author')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment