google_search_results 2.0.0 → 2.0.1
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.
- checksums.yaml +4 -4
- data/lib/search/serp_api_search.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad56c82937a90531cdebbddfa443885bb58848e8b165387263a72968e656a8aa
|
|
4
|
+
data.tar.gz: be506a5558ad74878c37faac39eb2477b377547e63cba06e631e7c4f83145806
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b39e137c299bb240a5194af347917170b85754394ef793f57c2843d9d0dced7558aef2a37ad907e431eeebbd558fd0f93ab40212d5a214a75b66ff5b50479e47
|
|
7
|
+
data.tar.gz: cab293e5a8883b81403fe802d59a4dfcf5078e822dddd62503e5b9ea46335b186e0bb50ea1cdc4838a80bb1db434a6feb6acae6831b27c44e0cfffd83885c495
|
|
@@ -13,7 +13,7 @@ EBAY_ENGINE = 'ebay'
|
|
|
13
13
|
#
|
|
14
14
|
class SerpApiSearch
|
|
15
15
|
|
|
16
|
-
VERSION = "2.0.
|
|
16
|
+
VERSION = "2.0.1"
|
|
17
17
|
BACKEND = "serpapi.com"
|
|
18
18
|
|
|
19
19
|
attr_accessor :params
|
|
@@ -131,7 +131,7 @@ class SerpApiSearch
|
|
|
131
131
|
def get_results(path)
|
|
132
132
|
begin
|
|
133
133
|
url = construct_url(path)
|
|
134
|
-
URI
|
|
134
|
+
URI(url).open(read_timeout: 600).read
|
|
135
135
|
rescue OpenURI::HTTPError => e
|
|
136
136
|
if error = JSON.load(e.io.read)["error"]
|
|
137
137
|
puts "server returns error for url: #{url}"
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google_search_results
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- hartator
|
|
8
8
|
- jvmvik
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2021-02-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|
|
@@ -87,7 +87,7 @@ licenses:
|
|
|
87
87
|
- MIT
|
|
88
88
|
metadata:
|
|
89
89
|
yard.run: yri
|
|
90
|
-
post_install_message:
|
|
90
|
+
post_install_message:
|
|
91
91
|
rdoc_options: []
|
|
92
92
|
require_paths:
|
|
93
93
|
- lib
|
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
103
|
version: '0'
|
|
104
104
|
requirements: []
|
|
105
105
|
rubygems_version: 3.1.2
|
|
106
|
-
signing_key:
|
|
106
|
+
signing_key:
|
|
107
107
|
specification_version: 4
|
|
108
108
|
summary: Get Google, Bing, Baidu, Ebay, Yahoo, Yandex Search Results via SerpApi.com
|
|
109
109
|
test_files: []
|