Permalink
Browse files

Disabling cerramatter

  • Loading branch information...
1 parent ae3fa8e commit c9353585cda0662193c38700e4fa26b511e11739 @swaroopch committed Dec 17, 2011
Showing with 11 additions and 10 deletions.
  1. +11 −10 app/models/bookprice.rb
View
@@ -277,16 +277,17 @@ def search_kindle(isbn)
end
end
- def search_cerramatter(isbn)
- url = "http://www.cerramatter.com/Search.html?keyword1=#{isbn}"
- page = self.fetch_page(url)
- unless page.nil?
- text = page.search(".productPrice").text
- { :price => find_price_at_end(text), :url => url }
- else
- { :price => NOT_AVAILABLE, :url => url }
- end
- end
+ ## NOTE Disabled because it always gives a 503
+ #def search_cerramatter(isbn)
+ #url = "http://www.cerramatter.com/Search.html?keyword1=#{isbn}"
+ #page = self.fetch_page(url)
+ #unless page.nil?
+ #text = page.search(".productPrice").text
+ #{ :price => find_price_at_end(text), :url => url }
+ #else
+ #{ :price => NOT_AVAILABLE, :url => url }
+ #end
+ #end
def search_rightbooks(isbn)
url = "http://www.rightbooks.in/Product_search.asp?cid=1&fc=5&fsr=#{isbn}&pt=2"

0 comments on commit c935358

Please sign in to comment.