book_finder_api 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- page.search("#mprodimg-id").each do |img_id|
68
- img_tag=img_id.search("img")
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
@@ -1,3 +1,3 @@
1
1
  module BookFinderApi
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: book_finder_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: