webscraping_ai 2.0.1 → 2.0.2
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/README.md +7 -6
- data/docs/HTMLApi.md +8 -6
- data/docs/SelectedHTMLApi.md +8 -6
- data/lib/webscraping_ai.rb +1 -1
- data/lib/webscraping_ai/api/html_api.rb +11 -11
- data/lib/webscraping_ai/api/selected_html_api.rb +11 -11
- data/lib/webscraping_ai/api_client.rb +1 -1
- data/lib/webscraping_ai/api_error.rb +1 -1
- data/lib/webscraping_ai/configuration.rb +1 -1
- data/lib/webscraping_ai/models/error.rb +1 -1
- data/lib/webscraping_ai/models/page_error.rb +1 -1
- data/lib/webscraping_ai/version.rb +2 -2
- data/spec/api/html_api_spec.rb +3 -3
- data/spec/api/selected_html_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/error_spec.rb +1 -1
- data/spec/models/page_error_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/webscraping_ai.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 245b0108a4b6209ce0c10d286e48af537e9b990d1541993438a61b53b32cb915
|
|
4
|
+
data.tar.gz: e62a98e1ceffcd5ac0599f45fdb6f6d91450d8cc77478b2befd33e69e3eda7d5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 27e74145d79364607b136b1f42b329587f890100b240713a2c3f16acb03701986f56c1b4142bfe84ddcb6a3dbd6467d64f54613fe2bd255c94f0f0eee4e2d6e1
|
|
7
|
+
data.tar.gz: 8a9006b1c1aa85e0176efd923de3be9ad459af1ca7873b414e459bdfd79c4ae61da16138a8d86230cf419f641808ed29cfa647e725f9b8b3a9e6e1621a63cd1d
|
data/README.md
CHANGED
|
@@ -6,8 +6,8 @@ A client for https://webscraping.ai API. It provides a web scaping automation AP
|
|
|
6
6
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
|
-
- API version: 2.0.
|
|
10
|
-
- Package version: 2.0.
|
|
9
|
+
- API version: 2.0.2
|
|
10
|
+
- Package version: 2.0.2
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [https://webscraping.ai](https://webscraping.ai)
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build webscraping_ai.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./webscraping_ai-2.0.
|
|
27
|
+
gem install ./webscraping_ai-2.0.2.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./webscraping_ai-2.0.
|
|
30
|
+
(for development, run `gem install --dev ./webscraping_ai-2.0.2.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'webscraping_ai', '~> 2.0.
|
|
36
|
+
gem 'webscraping_ai', '~> 2.0.2'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -76,7 +76,8 @@ opts = {
|
|
|
76
76
|
|
|
77
77
|
begin
|
|
78
78
|
#Page HTML by URL
|
|
79
|
-
api_instance.get_html(url, opts)
|
|
79
|
+
result = api_instance.get_html(url, opts)
|
|
80
|
+
p result
|
|
80
81
|
rescue WebScrapingAI::ApiError => e
|
|
81
82
|
puts "Exception when calling HTMLApi->get_html: #{e}"
|
|
82
83
|
end
|
data/docs/HTMLApi.md
CHANGED
|
@@ -11,7 +11,7 @@ Method | HTTP request | Description
|
|
|
11
11
|
|
|
12
12
|
## get_html
|
|
13
13
|
|
|
14
|
-
> get_html(url, opts)
|
|
14
|
+
> String get_html(url, opts)
|
|
15
15
|
|
|
16
16
|
Page HTML by URL
|
|
17
17
|
|
|
@@ -41,7 +41,8 @@ opts = {
|
|
|
41
41
|
|
|
42
42
|
begin
|
|
43
43
|
#Page HTML by URL
|
|
44
|
-
api_instance.get_html(url, opts)
|
|
44
|
+
result = api_instance.get_html(url, opts)
|
|
45
|
+
p result
|
|
45
46
|
rescue WebScrapingAI::ApiError => e
|
|
46
47
|
puts "Exception when calling HTMLApi->get_html: #{e}"
|
|
47
48
|
end
|
|
@@ -60,7 +61,7 @@ Name | Type | Description | Notes
|
|
|
60
61
|
|
|
61
62
|
### Return type
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
**String**
|
|
64
65
|
|
|
65
66
|
### Authorization
|
|
66
67
|
|
|
@@ -74,7 +75,7 @@ nil (empty response body)
|
|
|
74
75
|
|
|
75
76
|
## post_html
|
|
76
77
|
|
|
77
|
-
> post_html(url, opts)
|
|
78
|
+
> String post_html(url, opts)
|
|
78
79
|
|
|
79
80
|
Page HTML by URL with POST request to the target page
|
|
80
81
|
|
|
@@ -105,7 +106,8 @@ opts = {
|
|
|
105
106
|
|
|
106
107
|
begin
|
|
107
108
|
#Page HTML by URL with POST request to the target page
|
|
108
|
-
api_instance.post_html(url, opts)
|
|
109
|
+
result = api_instance.post_html(url, opts)
|
|
110
|
+
p result
|
|
109
111
|
rescue WebScrapingAI::ApiError => e
|
|
110
112
|
puts "Exception when calling HTMLApi->post_html: #{e}"
|
|
111
113
|
end
|
|
@@ -125,7 +127,7 @@ Name | Type | Description | Notes
|
|
|
125
127
|
|
|
126
128
|
### Return type
|
|
127
129
|
|
|
128
|
-
|
|
130
|
+
**String**
|
|
129
131
|
|
|
130
132
|
### Authorization
|
|
131
133
|
|
data/docs/SelectedHTMLApi.md
CHANGED
|
@@ -13,7 +13,7 @@ Method | HTTP request | Description
|
|
|
13
13
|
|
|
14
14
|
## get_selected
|
|
15
15
|
|
|
16
|
-
> get_selected(url, opts)
|
|
16
|
+
> String get_selected(url, opts)
|
|
17
17
|
|
|
18
18
|
HTML of a selected page area by URL and CSS selector
|
|
19
19
|
|
|
@@ -44,7 +44,8 @@ opts = {
|
|
|
44
44
|
|
|
45
45
|
begin
|
|
46
46
|
#HTML of a selected page area by URL and CSS selector
|
|
47
|
-
api_instance.get_selected(url, opts)
|
|
47
|
+
result = api_instance.get_selected(url, opts)
|
|
48
|
+
p result
|
|
48
49
|
rescue WebScrapingAI::ApiError => e
|
|
49
50
|
puts "Exception when calling SelectedHTMLApi->get_selected: #{e}"
|
|
50
51
|
end
|
|
@@ -64,7 +65,7 @@ Name | Type | Description | Notes
|
|
|
64
65
|
|
|
65
66
|
### Return type
|
|
66
67
|
|
|
67
|
-
|
|
68
|
+
**String**
|
|
68
69
|
|
|
69
70
|
### Authorization
|
|
70
71
|
|
|
@@ -144,7 +145,7 @@ Name | Type | Description | Notes
|
|
|
144
145
|
|
|
145
146
|
## post_selected
|
|
146
147
|
|
|
147
|
-
> post_selected(url, opts)
|
|
148
|
+
> String post_selected(url, opts)
|
|
148
149
|
|
|
149
150
|
HTML of a selected page areas by URL and CSS selector, with POST request to the target page
|
|
150
151
|
|
|
@@ -176,7 +177,8 @@ opts = {
|
|
|
176
177
|
|
|
177
178
|
begin
|
|
178
179
|
#HTML of a selected page areas by URL and CSS selector, with POST request to the target page
|
|
179
|
-
api_instance.post_selected(url, opts)
|
|
180
|
+
result = api_instance.post_selected(url, opts)
|
|
181
|
+
p result
|
|
180
182
|
rescue WebScrapingAI::ApiError => e
|
|
181
183
|
puts "Exception when calling SelectedHTMLApi->post_selected: #{e}"
|
|
182
184
|
end
|
|
@@ -197,7 +199,7 @@ Name | Type | Description | Notes
|
|
|
197
199
|
|
|
198
200
|
### Return type
|
|
199
201
|
|
|
200
|
-
|
|
202
|
+
**String**
|
|
201
203
|
|
|
202
204
|
### Authorization
|
|
203
205
|
|
data/lib/webscraping_ai.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -27,10 +27,10 @@ module WebScrapingAI
|
|
|
27
27
|
# @option opts [Integer] :timeout Maximum processing time in ms. Increase it in case of timeout errors (5000 by default, maximum is 30000) (default to 5000)
|
|
28
28
|
# @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default), costs 2 requests (default to true)
|
|
29
29
|
# @option opts [String] :proxy Type of proxy, use residential proxies if your site restricts traffic from datacenters (datacenter by default) (default to 'datacenter')
|
|
30
|
-
# @return [
|
|
30
|
+
# @return [String]
|
|
31
31
|
def get_html(url, opts = {})
|
|
32
|
-
get_html_with_http_info(url, opts)
|
|
33
|
-
|
|
32
|
+
data, _status_code, _headers = get_html_with_http_info(url, opts)
|
|
33
|
+
data
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
# Page HTML by URL
|
|
@@ -41,7 +41,7 @@ module WebScrapingAI
|
|
|
41
41
|
# @option opts [Integer] :timeout Maximum processing time in ms. Increase it in case of timeout errors (5000 by default, maximum is 30000)
|
|
42
42
|
# @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default), costs 2 requests
|
|
43
43
|
# @option opts [String] :proxy Type of proxy, use residential proxies if your site restricts traffic from datacenters (datacenter by default)
|
|
44
|
-
# @return [Array<(
|
|
44
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
|
45
45
|
def get_html_with_http_info(url, opts = {})
|
|
46
46
|
if @api_client.config.debugging
|
|
47
47
|
@api_client.config.logger.debug 'Calling API: HTMLApi.get_html ...'
|
|
@@ -85,7 +85,7 @@ module WebScrapingAI
|
|
|
85
85
|
post_body = opts[:body]
|
|
86
86
|
|
|
87
87
|
# return_type
|
|
88
|
-
return_type = opts[:return_type]
|
|
88
|
+
return_type = opts[:return_type] || 'String'
|
|
89
89
|
|
|
90
90
|
# auth_names
|
|
91
91
|
auth_names = opts[:auth_names] || ['api_key']
|
|
@@ -115,10 +115,10 @@ module WebScrapingAI
|
|
|
115
115
|
# @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default), costs 2 requests (default to true)
|
|
116
116
|
# @option opts [String] :proxy Type of proxy, use residential proxies if your site restricts traffic from datacenters (datacenter by default) (default to 'datacenter')
|
|
117
117
|
# @option opts [Hash<String, Object>] :request_body Request body to pass to the target page
|
|
118
|
-
# @return [
|
|
118
|
+
# @return [String]
|
|
119
119
|
def post_html(url, opts = {})
|
|
120
|
-
post_html_with_http_info(url, opts)
|
|
121
|
-
|
|
120
|
+
data, _status_code, _headers = post_html_with_http_info(url, opts)
|
|
121
|
+
data
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
# Page HTML by URL with POST request to the target page
|
|
@@ -130,7 +130,7 @@ module WebScrapingAI
|
|
|
130
130
|
# @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default), costs 2 requests
|
|
131
131
|
# @option opts [String] :proxy Type of proxy, use residential proxies if your site restricts traffic from datacenters (datacenter by default)
|
|
132
132
|
# @option opts [Hash<String, Object>] :request_body Request body to pass to the target page
|
|
133
|
-
# @return [Array<(
|
|
133
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
|
134
134
|
def post_html_with_http_info(url, opts = {})
|
|
135
135
|
if @api_client.config.debugging
|
|
136
136
|
@api_client.config.logger.debug 'Calling API: HTMLApi.post_html ...'
|
|
@@ -176,7 +176,7 @@ module WebScrapingAI
|
|
|
176
176
|
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
177
177
|
|
|
178
178
|
# return_type
|
|
179
|
-
return_type = opts[:return_type]
|
|
179
|
+
return_type = opts[:return_type] || 'String'
|
|
180
180
|
|
|
181
181
|
# auth_names
|
|
182
182
|
auth_names = opts[:auth_names] || ['api_key']
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -28,10 +28,10 @@ module WebScrapingAI
|
|
|
28
28
|
# @option opts [Integer] :timeout Maximum processing time in ms. Increase it in case of timeout errors (5000 by default, maximum is 30000) (default to 5000)
|
|
29
29
|
# @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default), costs 2 requests (default to true)
|
|
30
30
|
# @option opts [String] :proxy Type of proxy, use residential proxies if your site restricts traffic from datacenters (datacenter by default) (default to 'datacenter')
|
|
31
|
-
# @return [
|
|
31
|
+
# @return [String]
|
|
32
32
|
def get_selected(url, opts = {})
|
|
33
|
-
get_selected_with_http_info(url, opts)
|
|
34
|
-
|
|
33
|
+
data, _status_code, _headers = get_selected_with_http_info(url, opts)
|
|
34
|
+
data
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
# HTML of a selected page area by URL and CSS selector
|
|
@@ -43,7 +43,7 @@ module WebScrapingAI
|
|
|
43
43
|
# @option opts [Integer] :timeout Maximum processing time in ms. Increase it in case of timeout errors (5000 by default, maximum is 30000)
|
|
44
44
|
# @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default), costs 2 requests
|
|
45
45
|
# @option opts [String] :proxy Type of proxy, use residential proxies if your site restricts traffic from datacenters (datacenter by default)
|
|
46
|
-
# @return [Array<(
|
|
46
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
|
47
47
|
def get_selected_with_http_info(url, opts = {})
|
|
48
48
|
if @api_client.config.debugging
|
|
49
49
|
@api_client.config.logger.debug 'Calling API: SelectedHTMLApi.get_selected ...'
|
|
@@ -88,7 +88,7 @@ module WebScrapingAI
|
|
|
88
88
|
post_body = opts[:body]
|
|
89
89
|
|
|
90
90
|
# return_type
|
|
91
|
-
return_type = opts[:return_type]
|
|
91
|
+
return_type = opts[:return_type] || 'String'
|
|
92
92
|
|
|
93
93
|
# auth_names
|
|
94
94
|
auth_names = opts[:auth_names] || ['api_key']
|
|
@@ -209,10 +209,10 @@ module WebScrapingAI
|
|
|
209
209
|
# @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default), costs 2 requests (default to true)
|
|
210
210
|
# @option opts [String] :proxy Type of proxy, use residential proxies if your site restricts traffic from datacenters (datacenter by default) (default to 'datacenter')
|
|
211
211
|
# @option opts [Hash<String, Object>] :request_body Request body to pass to the target page
|
|
212
|
-
# @return [
|
|
212
|
+
# @return [String]
|
|
213
213
|
def post_selected(url, opts = {})
|
|
214
|
-
post_selected_with_http_info(url, opts)
|
|
215
|
-
|
|
214
|
+
data, _status_code, _headers = post_selected_with_http_info(url, opts)
|
|
215
|
+
data
|
|
216
216
|
end
|
|
217
217
|
|
|
218
218
|
# HTML of a selected page areas by URL and CSS selector, with POST request to the target page
|
|
@@ -225,7 +225,7 @@ module WebScrapingAI
|
|
|
225
225
|
# @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default), costs 2 requests
|
|
226
226
|
# @option opts [String] :proxy Type of proxy, use residential proxies if your site restricts traffic from datacenters (datacenter by default)
|
|
227
227
|
# @option opts [Hash<String, Object>] :request_body Request body to pass to the target page
|
|
228
|
-
# @return [Array<(
|
|
228
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
|
229
229
|
def post_selected_with_http_info(url, opts = {})
|
|
230
230
|
if @api_client.config.debugging
|
|
231
231
|
@api_client.config.logger.debug 'Calling API: SelectedHTMLApi.post_selected ...'
|
|
@@ -272,7 +272,7 @@ module WebScrapingAI
|
|
|
272
272
|
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
273
273
|
|
|
274
274
|
# return_type
|
|
275
|
-
return_type = opts[:return_type]
|
|
275
|
+
return_type = opts[:return_type] || 'String'
|
|
276
276
|
|
|
277
277
|
# auth_names
|
|
278
278
|
auth_names = opts[:auth_names] || ['api_key']
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module WebScrapingAI
|
|
14
|
-
VERSION = '2.0.
|
|
14
|
+
VERSION = '2.0.2'
|
|
15
15
|
end
|
data/spec/api/html_api_spec.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -41,7 +41,7 @@ describe 'HTMLApi' do
|
|
|
41
41
|
# @option opts [Integer] :timeout Maximum processing time in ms. Increase it in case of timeout errors (5000 by default, maximum is 30000)
|
|
42
42
|
# @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default), costs 2 requests
|
|
43
43
|
# @option opts [String] :proxy Type of proxy, use residential proxies if your site restricts traffic from datacenters (datacenter by default)
|
|
44
|
-
# @return [
|
|
44
|
+
# @return [String]
|
|
45
45
|
describe 'get_html test' do
|
|
46
46
|
it 'should work' do
|
|
47
47
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -58,7 +58,7 @@ describe 'HTMLApi' do
|
|
|
58
58
|
# @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default), costs 2 requests
|
|
59
59
|
# @option opts [String] :proxy Type of proxy, use residential proxies if your site restricts traffic from datacenters (datacenter by default)
|
|
60
60
|
# @option opts [Hash<String, Object>] :request_body Request body to pass to the target page
|
|
61
|
-
# @return [
|
|
61
|
+
# @return [String]
|
|
62
62
|
describe 'post_html test' do
|
|
63
63
|
it 'should work' do
|
|
64
64
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -42,7 +42,7 @@ describe 'SelectedHTMLApi' do
|
|
|
42
42
|
# @option opts [Integer] :timeout Maximum processing time in ms. Increase it in case of timeout errors (5000 by default, maximum is 30000)
|
|
43
43
|
# @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default), costs 2 requests
|
|
44
44
|
# @option opts [String] :proxy Type of proxy, use residential proxies if your site restricts traffic from datacenters (datacenter by default)
|
|
45
|
-
# @return [
|
|
45
|
+
# @return [String]
|
|
46
46
|
describe 'get_selected test' do
|
|
47
47
|
it 'should work' do
|
|
48
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -77,7 +77,7 @@ describe 'SelectedHTMLApi' do
|
|
|
77
77
|
# @option opts [Boolean] :js Execute on-page JavaScript using a headless browser (true by default), costs 2 requests
|
|
78
78
|
# @option opts [String] :proxy Type of proxy, use residential proxies if your site restricts traffic from datacenters (datacenter by default)
|
|
79
79
|
# @option opts [Hash<String, Object>] :request_body Request body to pass to the target page
|
|
80
|
-
# @return [
|
|
80
|
+
# @return [String]
|
|
81
81
|
describe 'post_selected test' do
|
|
82
82
|
it 'should work' do
|
|
83
83
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api_client_spec.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
data/spec/configuration_spec.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
data/spec/models/error_spec.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
data/spec/spec_helper.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
|
6
|
+
The version of the OpenAPI document: 2.0.2
|
|
7
7
|
Contact: support@webscraping.ai
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
data/webscraping_ai.gemspec
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
#A client for https://webscraping.ai API. It provides a web scaping automation API with Chrome JS rendering, rotating proxies and builtin HTML parsing.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 2.0.
|
|
8
|
+
The version of the OpenAPI document: 2.0.2
|
|
9
9
|
Contact: support@webscraping.ai
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
|
11
11
|
OpenAPI Generator version: 4.3.1
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: webscraping_ai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- WebScraping.AI
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-09-
|
|
11
|
+
date: 2020-09-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|