scrapebadger 0.1.0
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 +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +548 -0
- data/Rakefile +10 -0
- data/docs/AccountApi.md +76 -0
- data/docs/AccountInfo.md +28 -0
- data/docs/AmazonApi.md +1244 -0
- data/docs/ApartmentsApi.md +373 -0
- data/docs/BaiduApi.md +447 -0
- data/docs/BillingLogListResponse.md +24 -0
- data/docs/BillingLogResponse.md +32 -0
- data/docs/BingApi.md +610 -0
- data/docs/ChatGPTApi.md +521 -0
- data/docs/DepopApi.md +542 -0
- data/docs/DuckDuckGoApi.md +700 -0
- data/docs/EBayApi.md +1019 -0
- data/docs/FacebookApi.md +1671 -0
- data/docs/FilterRuleCreate.md +28 -0
- data/docs/FilterRuleDeliveryLogListResponse.md +24 -0
- data/docs/FilterRuleDeliveryLogResponse.md +44 -0
- data/docs/FilterRuleListResponse.md +24 -0
- data/docs/FilterRuleResponse.md +40 -0
- data/docs/FilterRuleUpdate.md +30 -0
- data/docs/FilterRuleValidateRequest.md +18 -0
- data/docs/FilterRuleValidateResponse.md +22 -0
- data/docs/GoogleApi.md +3175 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/IdealistaApi.md +822 -0
- data/docs/ImmobiliareApi.md +773 -0
- data/docs/InstagramApi.md +1673 -0
- data/docs/LeboncoinApi.md +884 -0
- data/docs/LinkedInApi.md +925 -0
- data/docs/LoopNetApi.md +529 -0
- data/docs/PortalApiRoutersV1TwitterFilterRulesFilterRulePricingResponse.md +20 -0
- data/docs/RealtorApi.md +474 -0
- data/docs/RedditApi.md +1677 -0
- data/docs/RedfinApi.md +616 -0
- data/docs/StreamMonitorCreate.md +26 -0
- data/docs/StreamMonitorListResponse.md +24 -0
- data/docs/StreamMonitorResponse.md +42 -0
- data/docs/StreamMonitorUpdate.md +28 -0
- data/docs/SubscriptionInfo.md +40 -0
- data/docs/TikTokApi.md +2104 -0
- data/docs/TweetDeliveryLogListResponse.md +24 -0
- data/docs/TweetDeliveryLogResponse.md +44 -0
- data/docs/TwitterApi.md +4091 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/docs/VintedApi.md +766 -0
- data/docs/WalmartApi.md +904 -0
- data/docs/WebApi.md +634 -0
- data/docs/WebhookCreate.md +22 -0
- data/docs/WebhookListItem.md +28 -0
- data/docs/WebhookListResponse.md +20 -0
- data/docs/WebhookResponse.md +26 -0
- data/docs/WebhookTestRequest.md +18 -0
- data/docs/WebhookTestResponse.md +24 -0
- data/docs/YahooApi.md +602 -0
- data/docs/YandexApi.md +450 -0
- data/docs/YouTubeApi.md +2872 -0
- data/docs/ZillowApi.md +622 -0
- data/git_push.sh +57 -0
- data/lib/scrapebadger/api/account_api.rb +79 -0
- data/lib/scrapebadger/api/amazon_api.rb +1165 -0
- data/lib/scrapebadger/api/apartments_api.rb +377 -0
- data/lib/scrapebadger/api/baidu_api.rb +436 -0
- data/lib/scrapebadger/api/bing_api.rb +580 -0
- data/lib/scrapebadger/api/chat_gpt_api.rb +466 -0
- data/lib/scrapebadger/api/depop_api.rb +518 -0
- data/lib/scrapebadger/api/duck_duck_go_api.rb +675 -0
- data/lib/scrapebadger/api/e_bay_api.rb +1029 -0
- data/lib/scrapebadger/api/facebook_api.rb +1492 -0
- data/lib/scrapebadger/api/google_api.rb +3191 -0
- data/lib/scrapebadger/api/idealista_api.rb +864 -0
- data/lib/scrapebadger/api/immobiliare_api.rb +734 -0
- data/lib/scrapebadger/api/instagram_api.rb +1555 -0
- data/lib/scrapebadger/api/leboncoin_api.rb +818 -0
- data/lib/scrapebadger/api/linked_in_api.rb +832 -0
- data/lib/scrapebadger/api/loop_net_api.rb +503 -0
- data/lib/scrapebadger/api/realtor_api.rb +481 -0
- data/lib/scrapebadger/api/reddit_api.rb +1601 -0
- data/lib/scrapebadger/api/redfin_api.rb +625 -0
- data/lib/scrapebadger/api/tik_tok_api.rb +2029 -0
- data/lib/scrapebadger/api/twitter_api.rb +3696 -0
- data/lib/scrapebadger/api/vinted_api.rb +705 -0
- data/lib/scrapebadger/api/walmart_api.rb +876 -0
- data/lib/scrapebadger/api/web_api.rb +547 -0
- data/lib/scrapebadger/api/yahoo_api.rb +560 -0
- data/lib/scrapebadger/api/yandex_api.rb +422 -0
- data/lib/scrapebadger/api/you_tube_api.rb +2520 -0
- data/lib/scrapebadger/api/zillow_api.rb +634 -0
- data/lib/scrapebadger/api_client.rb +394 -0
- data/lib/scrapebadger/api_error.rb +58 -0
- data/lib/scrapebadger/configuration.rb +308 -0
- data/lib/scrapebadger/models/account_info.rb +288 -0
- data/lib/scrapebadger/models/billing_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/billing_log_response.rb +334 -0
- data/lib/scrapebadger/models/filter_rule_create.rb +427 -0
- data/lib/scrapebadger/models/filter_rule_delivery_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/filter_rule_delivery_log_response.rb +422 -0
- data/lib/scrapebadger/models/filter_rule_list_response.rb +272 -0
- data/lib/scrapebadger/models/filter_rule_response.rb +390 -0
- data/lib/scrapebadger/models/filter_rule_update.rb +389 -0
- data/lib/scrapebadger/models/filter_rule_validate_request.rb +250 -0
- data/lib/scrapebadger/models/filter_rule_validate_response.rb +248 -0
- data/lib/scrapebadger/models/http_validation_error.rb +216 -0
- data/lib/scrapebadger/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response.rb +238 -0
- data/lib/scrapebadger/models/stream_monitor_create.rb +373 -0
- data/lib/scrapebadger/models/stream_monitor_list_response.rb +272 -0
- data/lib/scrapebadger/models/stream_monitor_response.rb +406 -0
- data/lib/scrapebadger/models/stream_monitor_update.rb +335 -0
- data/lib/scrapebadger/models/subscription_info.rb +352 -0
- data/lib/scrapebadger/models/tweet_delivery_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/tweet_delivery_log_response.rb +422 -0
- data/lib/scrapebadger/models/validation_error.rb +255 -0
- data/lib/scrapebadger/models/validation_error_loc_inner.rb +104 -0
- data/lib/scrapebadger/models/webhook_create.rb +282 -0
- data/lib/scrapebadger/models/webhook_list_item.rb +302 -0
- data/lib/scrapebadger/models/webhook_list_response.rb +240 -0
- data/lib/scrapebadger/models/webhook_response.rb +286 -0
- data/lib/scrapebadger/models/webhook_test_request.rb +223 -0
- data/lib/scrapebadger/models/webhook_test_response.rb +259 -0
- data/lib/scrapebadger/version.rb +15 -0
- data/lib/scrapebadger.rb +96 -0
- data/scrapebadger.gemspec +39 -0
- data/spec/api/account_api_spec.rb +46 -0
- data/spec/api/amazon_api_spec.rb +258 -0
- data/spec/api/apartments_api_spec.rb +98 -0
- data/spec/api/baidu_api_spec.rb +109 -0
- data/spec/api/bing_api_spec.rb +141 -0
- data/spec/api/chat_gpt_api_spec.rb +123 -0
- data/spec/api/depop_api_spec.rb +132 -0
- data/spec/api/duck_duck_go_api_spec.rb +162 -0
- data/spec/api/e_bay_api_spec.rb +222 -0
- data/spec/api/facebook_api_spec.rb +326 -0
- data/spec/api/google_api_spec.rb +649 -0
- data/spec/api/idealista_api_spec.rb +197 -0
- data/spec/api/immobiliare_api_spec.rb +174 -0
- data/spec/api/instagram_api_spec.rb +309 -0
- data/spec/api/leboncoin_api_spec.rb +184 -0
- data/spec/api/linked_in_api_spec.rb +197 -0
- data/spec/api/loop_net_api_spec.rb +127 -0
- data/spec/api/realtor_api_spec.rb +123 -0
- data/spec/api/reddit_api_spec.rb +331 -0
- data/spec/api/redfin_api_spec.rb +147 -0
- data/spec/api/tik_tok_api_spec.rb +413 -0
- data/spec/api/twitter_api_spec.rb +735 -0
- data/spec/api/vinted_api_spec.rb +169 -0
- data/spec/api/walmart_api_spec.rb +192 -0
- data/spec/api/web_api_spec.rb +136 -0
- data/spec/api/yahoo_api_spec.rb +137 -0
- data/spec/api/yandex_api_spec.rb +111 -0
- data/spec/api/you_tube_api_spec.rb +500 -0
- data/spec/api/zillow_api_spec.rb +150 -0
- data/spec/models/account_info_spec.rb +66 -0
- data/spec/models/billing_log_list_response_spec.rb +54 -0
- data/spec/models/billing_log_response_spec.rb +78 -0
- data/spec/models/filter_rule_create_spec.rb +66 -0
- data/spec/models/filter_rule_delivery_log_list_response_spec.rb +54 -0
- data/spec/models/filter_rule_delivery_log_response_spec.rb +114 -0
- data/spec/models/filter_rule_list_response_spec.rb +54 -0
- data/spec/models/filter_rule_response_spec.rb +102 -0
- data/spec/models/filter_rule_update_spec.rb +72 -0
- data/spec/models/filter_rule_validate_request_spec.rb +36 -0
- data/spec/models/filter_rule_validate_response_spec.rb +48 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response_spec.rb +42 -0
- data/spec/models/stream_monitor_create_spec.rb +60 -0
- data/spec/models/stream_monitor_list_response_spec.rb +54 -0
- data/spec/models/stream_monitor_response_spec.rb +108 -0
- data/spec/models/stream_monitor_update_spec.rb +66 -0
- data/spec/models/subscription_info_spec.rb +102 -0
- data/spec/models/tweet_delivery_log_list_response_spec.rb +54 -0
- data/spec/models/tweet_delivery_log_response_spec.rb +114 -0
- data/spec/models/validation_error_loc_inner_spec.rb +21 -0
- data/spec/models/validation_error_spec.rb +48 -0
- data/spec/models/webhook_create_spec.rb +48 -0
- data/spec/models/webhook_list_item_spec.rb +66 -0
- data/spec/models/webhook_list_response_spec.rb +42 -0
- data/spec/models/webhook_response_spec.rb +60 -0
- data/spec/models/webhook_test_request_spec.rb +36 -0
- data/spec/models/webhook_test_response_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- metadata +324 -0
data/docs/YandexApi.md
ADDED
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
# ScrapeBadger::YandexApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://scrapebadger.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**yandex_image_search**](YandexApi.md#yandex_image_search) | **GET** /v1/yandex/images/search | Image search |
|
|
8
|
+
| [**yandex_list_supported_markets**](YandexApi.md#yandex_list_supported_markets) | **GET** /v1/yandex/markets | List supported markets |
|
|
9
|
+
| [**yandex_reverse_image_search**](YandexApi.md#yandex_reverse_image_search) | **GET** /v1/yandex/images/reverse | Reverse image search |
|
|
10
|
+
| [**yandex_web_search**](YandexApi.md#yandex_web_search) | **GET** /v1/yandex/search | Web search |
|
|
11
|
+
| [**yandex_yandex_scraper_health_check**](YandexApi.md#yandex_yandex_scraper_health_check) | **GET** /v1/yandex/health | Yandex scraper health check |
|
|
12
|
+
| [**yandex_yandex_scraper_health_check_head**](YandexApi.md#yandex_yandex_scraper_health_check_head) | **HEAD** /v1/yandex/health | Yandex scraper health check |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## yandex_image_search
|
|
16
|
+
|
|
17
|
+
> Object yandex_image_search(query, opts)
|
|
18
|
+
|
|
19
|
+
Image search
|
|
20
|
+
|
|
21
|
+
Search Yandex Images by text — thumbnail, full-res URL, dimensions, source page.
|
|
22
|
+
|
|
23
|
+
### Examples
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'time'
|
|
27
|
+
require 'scrapebadger'
|
|
28
|
+
# setup authorization
|
|
29
|
+
ScrapeBadger.configure do |config|
|
|
30
|
+
# Configure API key authorization: ApiKeyAuth
|
|
31
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
32
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
33
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
api_instance = ScrapeBadger::YandexApi.new
|
|
37
|
+
query = 'query_example' # String | Image search query, e.g. 'coffee machine'
|
|
38
|
+
opts = {
|
|
39
|
+
domain: 'domain_example', # String | Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate.
|
|
40
|
+
page: 56 # Integer |
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
begin
|
|
44
|
+
# Image search
|
|
45
|
+
result = api_instance.yandex_image_search(query, opts)
|
|
46
|
+
p result
|
|
47
|
+
rescue ScrapeBadger::ApiError => e
|
|
48
|
+
puts "Error when calling YandexApi->yandex_image_search: #{e}"
|
|
49
|
+
end
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
#### Using the yandex_image_search_with_http_info variant
|
|
53
|
+
|
|
54
|
+
This returns an Array which contains the response data, status code and headers.
|
|
55
|
+
|
|
56
|
+
> <Array(Object, Integer, Hash)> yandex_image_search_with_http_info(query, opts)
|
|
57
|
+
|
|
58
|
+
```ruby
|
|
59
|
+
begin
|
|
60
|
+
# Image search
|
|
61
|
+
data, status_code, headers = api_instance.yandex_image_search_with_http_info(query, opts)
|
|
62
|
+
p status_code # => 2xx
|
|
63
|
+
p headers # => { ... }
|
|
64
|
+
p data # => Object
|
|
65
|
+
rescue ScrapeBadger::ApiError => e
|
|
66
|
+
puts "Error when calling YandexApi->yandex_image_search_with_http_info: #{e}"
|
|
67
|
+
end
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Parameters
|
|
71
|
+
|
|
72
|
+
| Name | Type | Description | Notes |
|
|
73
|
+
| ---- | ---- | ----------- | ----- |
|
|
74
|
+
| **query** | **String** | Image search query, e.g. 'coffee machine' | |
|
|
75
|
+
| **domain** | **String** | Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate. | [optional][default to 'tr'] |
|
|
76
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
77
|
+
|
|
78
|
+
### Return type
|
|
79
|
+
|
|
80
|
+
**Object**
|
|
81
|
+
|
|
82
|
+
### Authorization
|
|
83
|
+
|
|
84
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
85
|
+
|
|
86
|
+
### HTTP request headers
|
|
87
|
+
|
|
88
|
+
- **Content-Type**: Not defined
|
|
89
|
+
- **Accept**: application/json
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## yandex_list_supported_markets
|
|
93
|
+
|
|
94
|
+
> Object yandex_list_supported_markets
|
|
95
|
+
|
|
96
|
+
List supported markets
|
|
97
|
+
|
|
98
|
+
Supported Yandex markets (domains, default region and language).
|
|
99
|
+
|
|
100
|
+
### Examples
|
|
101
|
+
|
|
102
|
+
```ruby
|
|
103
|
+
require 'time'
|
|
104
|
+
require 'scrapebadger'
|
|
105
|
+
# setup authorization
|
|
106
|
+
ScrapeBadger.configure do |config|
|
|
107
|
+
# Configure API key authorization: ApiKeyAuth
|
|
108
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
109
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
110
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
api_instance = ScrapeBadger::YandexApi.new
|
|
114
|
+
|
|
115
|
+
begin
|
|
116
|
+
# List supported markets
|
|
117
|
+
result = api_instance.yandex_list_supported_markets
|
|
118
|
+
p result
|
|
119
|
+
rescue ScrapeBadger::ApiError => e
|
|
120
|
+
puts "Error when calling YandexApi->yandex_list_supported_markets: #{e}"
|
|
121
|
+
end
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
#### Using the yandex_list_supported_markets_with_http_info variant
|
|
125
|
+
|
|
126
|
+
This returns an Array which contains the response data, status code and headers.
|
|
127
|
+
|
|
128
|
+
> <Array(Object, Integer, Hash)> yandex_list_supported_markets_with_http_info
|
|
129
|
+
|
|
130
|
+
```ruby
|
|
131
|
+
begin
|
|
132
|
+
# List supported markets
|
|
133
|
+
data, status_code, headers = api_instance.yandex_list_supported_markets_with_http_info
|
|
134
|
+
p status_code # => 2xx
|
|
135
|
+
p headers # => { ... }
|
|
136
|
+
p data # => Object
|
|
137
|
+
rescue ScrapeBadger::ApiError => e
|
|
138
|
+
puts "Error when calling YandexApi->yandex_list_supported_markets_with_http_info: #{e}"
|
|
139
|
+
end
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
This endpoint does not need any parameter.
|
|
145
|
+
|
|
146
|
+
### Return type
|
|
147
|
+
|
|
148
|
+
**Object**
|
|
149
|
+
|
|
150
|
+
### Authorization
|
|
151
|
+
|
|
152
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
153
|
+
|
|
154
|
+
### HTTP request headers
|
|
155
|
+
|
|
156
|
+
- **Content-Type**: Not defined
|
|
157
|
+
- **Accept**: application/json
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
## yandex_reverse_image_search
|
|
161
|
+
|
|
162
|
+
> Object yandex_reverse_image_search(image_url, opts)
|
|
163
|
+
|
|
164
|
+
Reverse image search
|
|
165
|
+
|
|
166
|
+
Reverse image search by URL — hosting pages, similar images, tags, other sizes.
|
|
167
|
+
|
|
168
|
+
### Examples
|
|
169
|
+
|
|
170
|
+
```ruby
|
|
171
|
+
require 'time'
|
|
172
|
+
require 'scrapebadger'
|
|
173
|
+
# setup authorization
|
|
174
|
+
ScrapeBadger.configure do |config|
|
|
175
|
+
# Configure API key authorization: ApiKeyAuth
|
|
176
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
177
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
178
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
api_instance = ScrapeBadger::YandexApi.new
|
|
182
|
+
image_url = 'image_url_example' # String | Public URL of the image to reverse-search
|
|
183
|
+
opts = {
|
|
184
|
+
domain: 'domain_example' # String | Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate.
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
begin
|
|
188
|
+
# Reverse image search
|
|
189
|
+
result = api_instance.yandex_reverse_image_search(image_url, opts)
|
|
190
|
+
p result
|
|
191
|
+
rescue ScrapeBadger::ApiError => e
|
|
192
|
+
puts "Error when calling YandexApi->yandex_reverse_image_search: #{e}"
|
|
193
|
+
end
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
#### Using the yandex_reverse_image_search_with_http_info variant
|
|
197
|
+
|
|
198
|
+
This returns an Array which contains the response data, status code and headers.
|
|
199
|
+
|
|
200
|
+
> <Array(Object, Integer, Hash)> yandex_reverse_image_search_with_http_info(image_url, opts)
|
|
201
|
+
|
|
202
|
+
```ruby
|
|
203
|
+
begin
|
|
204
|
+
# Reverse image search
|
|
205
|
+
data, status_code, headers = api_instance.yandex_reverse_image_search_with_http_info(image_url, opts)
|
|
206
|
+
p status_code # => 2xx
|
|
207
|
+
p headers # => { ... }
|
|
208
|
+
p data # => Object
|
|
209
|
+
rescue ScrapeBadger::ApiError => e
|
|
210
|
+
puts "Error when calling YandexApi->yandex_reverse_image_search_with_http_info: #{e}"
|
|
211
|
+
end
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Parameters
|
|
215
|
+
|
|
216
|
+
| Name | Type | Description | Notes |
|
|
217
|
+
| ---- | ---- | ----------- | ----- |
|
|
218
|
+
| **image_url** | **String** | Public URL of the image to reverse-search | |
|
|
219
|
+
| **domain** | **String** | Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate. | [optional][default to 'tr'] |
|
|
220
|
+
|
|
221
|
+
### Return type
|
|
222
|
+
|
|
223
|
+
**Object**
|
|
224
|
+
|
|
225
|
+
### Authorization
|
|
226
|
+
|
|
227
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
228
|
+
|
|
229
|
+
### HTTP request headers
|
|
230
|
+
|
|
231
|
+
- **Content-Type**: Not defined
|
|
232
|
+
- **Accept**: application/json
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
## yandex_web_search
|
|
236
|
+
|
|
237
|
+
> Object yandex_web_search(query, opts)
|
|
238
|
+
|
|
239
|
+
Web search
|
|
240
|
+
|
|
241
|
+
Search Yandex web results — organic results, ads, displayed URLs, snippets.
|
|
242
|
+
|
|
243
|
+
### Examples
|
|
244
|
+
|
|
245
|
+
```ruby
|
|
246
|
+
require 'time'
|
|
247
|
+
require 'scrapebadger'
|
|
248
|
+
# setup authorization
|
|
249
|
+
ScrapeBadger.configure do |config|
|
|
250
|
+
# Configure API key authorization: ApiKeyAuth
|
|
251
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
252
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
253
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
api_instance = ScrapeBadger::YandexApi.new
|
|
257
|
+
query = 'query_example' # String | Search query, e.g. 'coffee machine'
|
|
258
|
+
opts = {
|
|
259
|
+
domain: 'domain_example', # String | Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate.
|
|
260
|
+
page: 56, # Integer |
|
|
261
|
+
lr: 56, # Integer | Yandex region id, e.g. 213=Moscow, 84=USA
|
|
262
|
+
lang: 'lang_example' # String | UI language: ru, en, tr, be, kk, uk
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
begin
|
|
266
|
+
# Web search
|
|
267
|
+
result = api_instance.yandex_web_search(query, opts)
|
|
268
|
+
p result
|
|
269
|
+
rescue ScrapeBadger::ApiError => e
|
|
270
|
+
puts "Error when calling YandexApi->yandex_web_search: #{e}"
|
|
271
|
+
end
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
#### Using the yandex_web_search_with_http_info variant
|
|
275
|
+
|
|
276
|
+
This returns an Array which contains the response data, status code and headers.
|
|
277
|
+
|
|
278
|
+
> <Array(Object, Integer, Hash)> yandex_web_search_with_http_info(query, opts)
|
|
279
|
+
|
|
280
|
+
```ruby
|
|
281
|
+
begin
|
|
282
|
+
# Web search
|
|
283
|
+
data, status_code, headers = api_instance.yandex_web_search_with_http_info(query, opts)
|
|
284
|
+
p status_code # => 2xx
|
|
285
|
+
p headers # => { ... }
|
|
286
|
+
p data # => Object
|
|
287
|
+
rescue ScrapeBadger::ApiError => e
|
|
288
|
+
puts "Error when calling YandexApi->yandex_web_search_with_http_info: #{e}"
|
|
289
|
+
end
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
### Parameters
|
|
293
|
+
|
|
294
|
+
| Name | Type | Description | Notes |
|
|
295
|
+
| ---- | ---- | ----------- | ----- |
|
|
296
|
+
| **query** | **String** | Search query, e.g. 'coffee machine' | |
|
|
297
|
+
| **domain** | **String** | Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate. | [optional][default to 'tr'] |
|
|
298
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
299
|
+
| **lr** | **Integer** | Yandex region id, e.g. 213=Moscow, 84=USA | [optional] |
|
|
300
|
+
| **lang** | **String** | UI language: ru, en, tr, be, kk, uk | [optional] |
|
|
301
|
+
|
|
302
|
+
### Return type
|
|
303
|
+
|
|
304
|
+
**Object**
|
|
305
|
+
|
|
306
|
+
### Authorization
|
|
307
|
+
|
|
308
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
309
|
+
|
|
310
|
+
### HTTP request headers
|
|
311
|
+
|
|
312
|
+
- **Content-Type**: Not defined
|
|
313
|
+
- **Accept**: application/json
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
## yandex_yandex_scraper_health_check
|
|
317
|
+
|
|
318
|
+
> Object yandex_yandex_scraper_health_check
|
|
319
|
+
|
|
320
|
+
Yandex scraper health check
|
|
321
|
+
|
|
322
|
+
Check health of the Yandex scraper service (accepts HEAD for UptimeRobot).
|
|
323
|
+
|
|
324
|
+
### Examples
|
|
325
|
+
|
|
326
|
+
```ruby
|
|
327
|
+
require 'time'
|
|
328
|
+
require 'scrapebadger'
|
|
329
|
+
# setup authorization
|
|
330
|
+
ScrapeBadger.configure do |config|
|
|
331
|
+
# Configure API key authorization: ApiKeyAuth
|
|
332
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
333
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
334
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
api_instance = ScrapeBadger::YandexApi.new
|
|
338
|
+
|
|
339
|
+
begin
|
|
340
|
+
# Yandex scraper health check
|
|
341
|
+
result = api_instance.yandex_yandex_scraper_health_check
|
|
342
|
+
p result
|
|
343
|
+
rescue ScrapeBadger::ApiError => e
|
|
344
|
+
puts "Error when calling YandexApi->yandex_yandex_scraper_health_check: #{e}"
|
|
345
|
+
end
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
#### Using the yandex_yandex_scraper_health_check_with_http_info variant
|
|
349
|
+
|
|
350
|
+
This returns an Array which contains the response data, status code and headers.
|
|
351
|
+
|
|
352
|
+
> <Array(Object, Integer, Hash)> yandex_yandex_scraper_health_check_with_http_info
|
|
353
|
+
|
|
354
|
+
```ruby
|
|
355
|
+
begin
|
|
356
|
+
# Yandex scraper health check
|
|
357
|
+
data, status_code, headers = api_instance.yandex_yandex_scraper_health_check_with_http_info
|
|
358
|
+
p status_code # => 2xx
|
|
359
|
+
p headers # => { ... }
|
|
360
|
+
p data # => Object
|
|
361
|
+
rescue ScrapeBadger::ApiError => e
|
|
362
|
+
puts "Error when calling YandexApi->yandex_yandex_scraper_health_check_with_http_info: #{e}"
|
|
363
|
+
end
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### Parameters
|
|
367
|
+
|
|
368
|
+
This endpoint does not need any parameter.
|
|
369
|
+
|
|
370
|
+
### Return type
|
|
371
|
+
|
|
372
|
+
**Object**
|
|
373
|
+
|
|
374
|
+
### Authorization
|
|
375
|
+
|
|
376
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
377
|
+
|
|
378
|
+
### HTTP request headers
|
|
379
|
+
|
|
380
|
+
- **Content-Type**: Not defined
|
|
381
|
+
- **Accept**: application/json
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
## yandex_yandex_scraper_health_check_head
|
|
385
|
+
|
|
386
|
+
> Object yandex_yandex_scraper_health_check_head
|
|
387
|
+
|
|
388
|
+
Yandex scraper health check
|
|
389
|
+
|
|
390
|
+
Check health of the Yandex scraper service (accepts HEAD for UptimeRobot).
|
|
391
|
+
|
|
392
|
+
### Examples
|
|
393
|
+
|
|
394
|
+
```ruby
|
|
395
|
+
require 'time'
|
|
396
|
+
require 'scrapebadger'
|
|
397
|
+
# setup authorization
|
|
398
|
+
ScrapeBadger.configure do |config|
|
|
399
|
+
# Configure API key authorization: ApiKeyAuth
|
|
400
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
401
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
402
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
api_instance = ScrapeBadger::YandexApi.new
|
|
406
|
+
|
|
407
|
+
begin
|
|
408
|
+
# Yandex scraper health check
|
|
409
|
+
result = api_instance.yandex_yandex_scraper_health_check_head
|
|
410
|
+
p result
|
|
411
|
+
rescue ScrapeBadger::ApiError => e
|
|
412
|
+
puts "Error when calling YandexApi->yandex_yandex_scraper_health_check_head: #{e}"
|
|
413
|
+
end
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
#### Using the yandex_yandex_scraper_health_check_head_with_http_info variant
|
|
417
|
+
|
|
418
|
+
This returns an Array which contains the response data, status code and headers.
|
|
419
|
+
|
|
420
|
+
> <Array(Object, Integer, Hash)> yandex_yandex_scraper_health_check_head_with_http_info
|
|
421
|
+
|
|
422
|
+
```ruby
|
|
423
|
+
begin
|
|
424
|
+
# Yandex scraper health check
|
|
425
|
+
data, status_code, headers = api_instance.yandex_yandex_scraper_health_check_head_with_http_info
|
|
426
|
+
p status_code # => 2xx
|
|
427
|
+
p headers # => { ... }
|
|
428
|
+
p data # => Object
|
|
429
|
+
rescue ScrapeBadger::ApiError => e
|
|
430
|
+
puts "Error when calling YandexApi->yandex_yandex_scraper_health_check_head_with_http_info: #{e}"
|
|
431
|
+
end
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
### Parameters
|
|
435
|
+
|
|
436
|
+
This endpoint does not need any parameter.
|
|
437
|
+
|
|
438
|
+
### Return type
|
|
439
|
+
|
|
440
|
+
**Object**
|
|
441
|
+
|
|
442
|
+
### Authorization
|
|
443
|
+
|
|
444
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
445
|
+
|
|
446
|
+
### HTTP request headers
|
|
447
|
+
|
|
448
|
+
- **Content-Type**: Not defined
|
|
449
|
+
- **Accept**: application/json
|
|
450
|
+
|