book_finder_api 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/book_finder_api/version.rb +1 -1
- data/lib/book_finder_api.rb +1 -0
- metadata +1 -1
data/lib/book_finder_api.rb
CHANGED
@@ -14,6 +14,7 @@ class BookFinder
|
|
14
14
|
search_url="http://www.flipkart.com/search/a/all?query=#{isbn}"
|
15
15
|
result=Hash.new
|
16
16
|
agent =Mechanize.new
|
17
|
+
agent.redirect_ok
|
17
18
|
page = agent.get(search_url)
|
18
19
|
page.search(".fk-specs-type2 tr").each do |tr|
|
19
20
|
fk_key=tr.search(".specs-key").text()
|