google_search_results 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google_search_results.rb +10 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15ac4beb68362b08d497378e24cd178ec7f12253
|
4
|
+
data.tar.gz: d27a8cc17b98290c3330a3592e35d7745647093b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ec3f13e5e4c232c4c14308c87ce03a6e5bd9a876c2c3e50f5fc91c029767f97d1a05e524d78354a2878c52e0d4807794e57b3dc0ea9a12b6709d99097ee403e
|
7
|
+
data.tar.gz: de5fd3ec6ae4ab91058f536377a46bb8c46d9ed950b761dcc508c551c70ac197f6995440546008f40903be70de254b52937e9c17320218725500f0dcd5655dcb
|
@@ -6,7 +6,7 @@ require_relative 'google_search_results/hash'
|
|
6
6
|
|
7
7
|
class GoogleSearchResults
|
8
8
|
|
9
|
-
VERSION = "0.
|
9
|
+
VERSION = "1.0.0"
|
10
10
|
BACKEND = "serpapi.com"
|
11
11
|
|
12
12
|
@@serp_api_key = nil
|
@@ -51,8 +51,17 @@ class GoogleSearchResults
|
|
51
51
|
get_results
|
52
52
|
end
|
53
53
|
|
54
|
+
def get_json_with_images
|
55
|
+
@params[:output] = "json_with_images"
|
56
|
+
get_results
|
57
|
+
end
|
58
|
+
|
54
59
|
def get_hash
|
55
60
|
JSON.load(get_json).symbolize_all_keys
|
56
61
|
end
|
57
62
|
|
63
|
+
def get_hash_with_images
|
64
|
+
JSON.load(get_json_with_images).symbolize_all_keys
|
65
|
+
end
|
66
|
+
|
58
67
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_search_results
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hartator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|