book_finder_api 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/book_finder_api.rb +5 -5
- data/lib/book_finder_api/version.rb +1 -1
- metadata +1 -1
data/lib/book_finder_api.rb
CHANGED
@@ -62,13 +62,13 @@ class BookFinder
|
|
62
62
|
img_url=img_tag.attribute("src")
|
63
63
|
result["img_url"]=img_url.to_s
|
64
64
|
end
|
65
|
-
|
66
|
-
if result["img_url"]
|
67
|
-
|
68
|
-
img_tag
|
65
|
+
puts "#{result['img_url']} is image url"
|
66
|
+
if result["img_url"].nil?
|
67
|
+
img_tag=page.search(".fk-mproduct .mprodimg-section img")
|
68
|
+
puts img_tag
|
69
|
+
puts "inside"
|
69
70
|
img_url=img_tag.attribute("src")
|
70
71
|
result["img_url"]=img_url.to_s
|
71
|
-
end
|
72
72
|
end
|
73
73
|
|
74
74
|
#storing the price
|