gsearch-parser 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/gsearch-parser.gemspec +1 -1
- data/lib/gsearch-parser.rb +6 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.4
|
data/gsearch-parser.gemspec
CHANGED
data/lib/gsearch-parser.rb
CHANGED
@@ -27,6 +27,9 @@ class GoogleWebSearch
|
|
27
27
|
|
28
28
|
# Update the results list: (Fetch, Store, and Parse)
|
29
29
|
updateResults("http://google.com/search?sourceid=chrome&q=#{query}")
|
30
|
+
|
31
|
+
# Update next URI
|
32
|
+
updateNextURI
|
30
33
|
end
|
31
34
|
|
32
35
|
# Update the nextURI attribute
|
@@ -86,11 +89,11 @@ class GoogleWebSearch
|
|
86
89
|
|
87
90
|
# Parse the results from the next page and append to results list
|
88
91
|
def nextResults
|
89
|
-
# Update nextURI
|
90
|
-
updateNextURI
|
91
|
-
|
92
92
|
# Update results
|
93
93
|
updateResults(@nextURI)
|
94
|
+
|
95
|
+
# Update nextURI
|
96
|
+
updateNextURI
|
94
97
|
end
|
95
98
|
|
96
99
|
# Iterator over results
|