Browse files

Updating Indiaplaza, based on feedback by Feroz Khan Hamid

  • Loading branch information...
1 parent 2f40897 commit aac1b75bf44b9b2217d8e675b238b7d561a0a1e2 @swaroopch committed Jan 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/models/bookprice.rb
View
4 app/models/bookprice.rb
@@ -123,11 +123,11 @@ def search_rediff(isbn)
end
def search_indiaplaza(isbn)
- url = "http://www.indiaplaza.com/search.aspx?storename=Books&srchkey=isbn&srchVal=#{isbn}?affid=110550"
+ url = "http://www.indiaplaza.com/searchproducts.aspx?sn=books&q=#{isbn}&affid=110550"
page = self.fetch_page(url)
unless page.nil?
begin
- text = page.search(".tier1box2 ul li:first-child span").text
+ text = page.search("div.ourPrice").text
rescue
text = nil
end

0 comments on commit aac1b75

Please sign in to comment.