book_finder_api 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/book_finder_api.rb +6 -0
- data/lib/book_finder_api/version.rb +1 -1
- metadata +2 -2
data/lib/book_finder_api.rb
CHANGED
@@ -34,6 +34,12 @@ class BookFinder
|
|
34
34
|
book_authors << author.text()
|
35
35
|
end
|
36
36
|
result["Author"]=book_authors.join(",")
|
37
|
+
if result["Author"] ==""
|
38
|
+
title_div.search(".secondary-info a").each do |author|
|
39
|
+
book_authors << author.inner_html
|
40
|
+
end
|
41
|
+
result["Author"]=book_authors.join(",")
|
42
|
+
end
|
37
43
|
#storing the resluts
|
38
44
|
page.search(".fk-specs-type2 tr").each do |tr|
|
39
45
|
fk_key=tr.search(".specs-key").text()
|
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.
|
4
|
+
version: 0.0.17
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|