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.
Files changed (185) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +548 -0
  5. data/Rakefile +10 -0
  6. data/docs/AccountApi.md +76 -0
  7. data/docs/AccountInfo.md +28 -0
  8. data/docs/AmazonApi.md +1244 -0
  9. data/docs/ApartmentsApi.md +373 -0
  10. data/docs/BaiduApi.md +447 -0
  11. data/docs/BillingLogListResponse.md +24 -0
  12. data/docs/BillingLogResponse.md +32 -0
  13. data/docs/BingApi.md +610 -0
  14. data/docs/ChatGPTApi.md +521 -0
  15. data/docs/DepopApi.md +542 -0
  16. data/docs/DuckDuckGoApi.md +700 -0
  17. data/docs/EBayApi.md +1019 -0
  18. data/docs/FacebookApi.md +1671 -0
  19. data/docs/FilterRuleCreate.md +28 -0
  20. data/docs/FilterRuleDeliveryLogListResponse.md +24 -0
  21. data/docs/FilterRuleDeliveryLogResponse.md +44 -0
  22. data/docs/FilterRuleListResponse.md +24 -0
  23. data/docs/FilterRuleResponse.md +40 -0
  24. data/docs/FilterRuleUpdate.md +30 -0
  25. data/docs/FilterRuleValidateRequest.md +18 -0
  26. data/docs/FilterRuleValidateResponse.md +22 -0
  27. data/docs/GoogleApi.md +3175 -0
  28. data/docs/HTTPValidationError.md +18 -0
  29. data/docs/IdealistaApi.md +822 -0
  30. data/docs/ImmobiliareApi.md +773 -0
  31. data/docs/InstagramApi.md +1673 -0
  32. data/docs/LeboncoinApi.md +884 -0
  33. data/docs/LinkedInApi.md +925 -0
  34. data/docs/LoopNetApi.md +529 -0
  35. data/docs/PortalApiRoutersV1TwitterFilterRulesFilterRulePricingResponse.md +20 -0
  36. data/docs/RealtorApi.md +474 -0
  37. data/docs/RedditApi.md +1677 -0
  38. data/docs/RedfinApi.md +616 -0
  39. data/docs/StreamMonitorCreate.md +26 -0
  40. data/docs/StreamMonitorListResponse.md +24 -0
  41. data/docs/StreamMonitorResponse.md +42 -0
  42. data/docs/StreamMonitorUpdate.md +28 -0
  43. data/docs/SubscriptionInfo.md +40 -0
  44. data/docs/TikTokApi.md +2104 -0
  45. data/docs/TweetDeliveryLogListResponse.md +24 -0
  46. data/docs/TweetDeliveryLogResponse.md +44 -0
  47. data/docs/TwitterApi.md +4091 -0
  48. data/docs/ValidationError.md +22 -0
  49. data/docs/ValidationErrorLocInner.md +15 -0
  50. data/docs/VintedApi.md +766 -0
  51. data/docs/WalmartApi.md +904 -0
  52. data/docs/WebApi.md +634 -0
  53. data/docs/WebhookCreate.md +22 -0
  54. data/docs/WebhookListItem.md +28 -0
  55. data/docs/WebhookListResponse.md +20 -0
  56. data/docs/WebhookResponse.md +26 -0
  57. data/docs/WebhookTestRequest.md +18 -0
  58. data/docs/WebhookTestResponse.md +24 -0
  59. data/docs/YahooApi.md +602 -0
  60. data/docs/YandexApi.md +450 -0
  61. data/docs/YouTubeApi.md +2872 -0
  62. data/docs/ZillowApi.md +622 -0
  63. data/git_push.sh +57 -0
  64. data/lib/scrapebadger/api/account_api.rb +79 -0
  65. data/lib/scrapebadger/api/amazon_api.rb +1165 -0
  66. data/lib/scrapebadger/api/apartments_api.rb +377 -0
  67. data/lib/scrapebadger/api/baidu_api.rb +436 -0
  68. data/lib/scrapebadger/api/bing_api.rb +580 -0
  69. data/lib/scrapebadger/api/chat_gpt_api.rb +466 -0
  70. data/lib/scrapebadger/api/depop_api.rb +518 -0
  71. data/lib/scrapebadger/api/duck_duck_go_api.rb +675 -0
  72. data/lib/scrapebadger/api/e_bay_api.rb +1029 -0
  73. data/lib/scrapebadger/api/facebook_api.rb +1492 -0
  74. data/lib/scrapebadger/api/google_api.rb +3191 -0
  75. data/lib/scrapebadger/api/idealista_api.rb +864 -0
  76. data/lib/scrapebadger/api/immobiliare_api.rb +734 -0
  77. data/lib/scrapebadger/api/instagram_api.rb +1555 -0
  78. data/lib/scrapebadger/api/leboncoin_api.rb +818 -0
  79. data/lib/scrapebadger/api/linked_in_api.rb +832 -0
  80. data/lib/scrapebadger/api/loop_net_api.rb +503 -0
  81. data/lib/scrapebadger/api/realtor_api.rb +481 -0
  82. data/lib/scrapebadger/api/reddit_api.rb +1601 -0
  83. data/lib/scrapebadger/api/redfin_api.rb +625 -0
  84. data/lib/scrapebadger/api/tik_tok_api.rb +2029 -0
  85. data/lib/scrapebadger/api/twitter_api.rb +3696 -0
  86. data/lib/scrapebadger/api/vinted_api.rb +705 -0
  87. data/lib/scrapebadger/api/walmart_api.rb +876 -0
  88. data/lib/scrapebadger/api/web_api.rb +547 -0
  89. data/lib/scrapebadger/api/yahoo_api.rb +560 -0
  90. data/lib/scrapebadger/api/yandex_api.rb +422 -0
  91. data/lib/scrapebadger/api/you_tube_api.rb +2520 -0
  92. data/lib/scrapebadger/api/zillow_api.rb +634 -0
  93. data/lib/scrapebadger/api_client.rb +394 -0
  94. data/lib/scrapebadger/api_error.rb +58 -0
  95. data/lib/scrapebadger/configuration.rb +308 -0
  96. data/lib/scrapebadger/models/account_info.rb +288 -0
  97. data/lib/scrapebadger/models/billing_log_list_response.rb +272 -0
  98. data/lib/scrapebadger/models/billing_log_response.rb +334 -0
  99. data/lib/scrapebadger/models/filter_rule_create.rb +427 -0
  100. data/lib/scrapebadger/models/filter_rule_delivery_log_list_response.rb +272 -0
  101. data/lib/scrapebadger/models/filter_rule_delivery_log_response.rb +422 -0
  102. data/lib/scrapebadger/models/filter_rule_list_response.rb +272 -0
  103. data/lib/scrapebadger/models/filter_rule_response.rb +390 -0
  104. data/lib/scrapebadger/models/filter_rule_update.rb +389 -0
  105. data/lib/scrapebadger/models/filter_rule_validate_request.rb +250 -0
  106. data/lib/scrapebadger/models/filter_rule_validate_response.rb +248 -0
  107. data/lib/scrapebadger/models/http_validation_error.rb +216 -0
  108. data/lib/scrapebadger/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response.rb +238 -0
  109. data/lib/scrapebadger/models/stream_monitor_create.rb +373 -0
  110. data/lib/scrapebadger/models/stream_monitor_list_response.rb +272 -0
  111. data/lib/scrapebadger/models/stream_monitor_response.rb +406 -0
  112. data/lib/scrapebadger/models/stream_monitor_update.rb +335 -0
  113. data/lib/scrapebadger/models/subscription_info.rb +352 -0
  114. data/lib/scrapebadger/models/tweet_delivery_log_list_response.rb +272 -0
  115. data/lib/scrapebadger/models/tweet_delivery_log_response.rb +422 -0
  116. data/lib/scrapebadger/models/validation_error.rb +255 -0
  117. data/lib/scrapebadger/models/validation_error_loc_inner.rb +104 -0
  118. data/lib/scrapebadger/models/webhook_create.rb +282 -0
  119. data/lib/scrapebadger/models/webhook_list_item.rb +302 -0
  120. data/lib/scrapebadger/models/webhook_list_response.rb +240 -0
  121. data/lib/scrapebadger/models/webhook_response.rb +286 -0
  122. data/lib/scrapebadger/models/webhook_test_request.rb +223 -0
  123. data/lib/scrapebadger/models/webhook_test_response.rb +259 -0
  124. data/lib/scrapebadger/version.rb +15 -0
  125. data/lib/scrapebadger.rb +96 -0
  126. data/scrapebadger.gemspec +39 -0
  127. data/spec/api/account_api_spec.rb +46 -0
  128. data/spec/api/amazon_api_spec.rb +258 -0
  129. data/spec/api/apartments_api_spec.rb +98 -0
  130. data/spec/api/baidu_api_spec.rb +109 -0
  131. data/spec/api/bing_api_spec.rb +141 -0
  132. data/spec/api/chat_gpt_api_spec.rb +123 -0
  133. data/spec/api/depop_api_spec.rb +132 -0
  134. data/spec/api/duck_duck_go_api_spec.rb +162 -0
  135. data/spec/api/e_bay_api_spec.rb +222 -0
  136. data/spec/api/facebook_api_spec.rb +326 -0
  137. data/spec/api/google_api_spec.rb +649 -0
  138. data/spec/api/idealista_api_spec.rb +197 -0
  139. data/spec/api/immobiliare_api_spec.rb +174 -0
  140. data/spec/api/instagram_api_spec.rb +309 -0
  141. data/spec/api/leboncoin_api_spec.rb +184 -0
  142. data/spec/api/linked_in_api_spec.rb +197 -0
  143. data/spec/api/loop_net_api_spec.rb +127 -0
  144. data/spec/api/realtor_api_spec.rb +123 -0
  145. data/spec/api/reddit_api_spec.rb +331 -0
  146. data/spec/api/redfin_api_spec.rb +147 -0
  147. data/spec/api/tik_tok_api_spec.rb +413 -0
  148. data/spec/api/twitter_api_spec.rb +735 -0
  149. data/spec/api/vinted_api_spec.rb +169 -0
  150. data/spec/api/walmart_api_spec.rb +192 -0
  151. data/spec/api/web_api_spec.rb +136 -0
  152. data/spec/api/yahoo_api_spec.rb +137 -0
  153. data/spec/api/yandex_api_spec.rb +111 -0
  154. data/spec/api/you_tube_api_spec.rb +500 -0
  155. data/spec/api/zillow_api_spec.rb +150 -0
  156. data/spec/models/account_info_spec.rb +66 -0
  157. data/spec/models/billing_log_list_response_spec.rb +54 -0
  158. data/spec/models/billing_log_response_spec.rb +78 -0
  159. data/spec/models/filter_rule_create_spec.rb +66 -0
  160. data/spec/models/filter_rule_delivery_log_list_response_spec.rb +54 -0
  161. data/spec/models/filter_rule_delivery_log_response_spec.rb +114 -0
  162. data/spec/models/filter_rule_list_response_spec.rb +54 -0
  163. data/spec/models/filter_rule_response_spec.rb +102 -0
  164. data/spec/models/filter_rule_update_spec.rb +72 -0
  165. data/spec/models/filter_rule_validate_request_spec.rb +36 -0
  166. data/spec/models/filter_rule_validate_response_spec.rb +48 -0
  167. data/spec/models/http_validation_error_spec.rb +36 -0
  168. data/spec/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response_spec.rb +42 -0
  169. data/spec/models/stream_monitor_create_spec.rb +60 -0
  170. data/spec/models/stream_monitor_list_response_spec.rb +54 -0
  171. data/spec/models/stream_monitor_response_spec.rb +108 -0
  172. data/spec/models/stream_monitor_update_spec.rb +66 -0
  173. data/spec/models/subscription_info_spec.rb +102 -0
  174. data/spec/models/tweet_delivery_log_list_response_spec.rb +54 -0
  175. data/spec/models/tweet_delivery_log_response_spec.rb +114 -0
  176. data/spec/models/validation_error_loc_inner_spec.rb +21 -0
  177. data/spec/models/validation_error_spec.rb +48 -0
  178. data/spec/models/webhook_create_spec.rb +48 -0
  179. data/spec/models/webhook_list_item_spec.rb +66 -0
  180. data/spec/models/webhook_list_response_spec.rb +42 -0
  181. data/spec/models/webhook_response_spec.rb +60 -0
  182. data/spec/models/webhook_test_request_spec.rb +36 -0
  183. data/spec/models/webhook_test_response_spec.rb +54 -0
  184. data/spec/spec_helper.rb +111 -0
  185. metadata +324 -0
data/docs/ZillowApi.md ADDED
@@ -0,0 +1,622 @@
1
+ # ScrapeBadger::ZillowApi
2
+
3
+ All URIs are relative to *https://scrapebadger.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**zillow_get_agent_profile_listings**](ZillowApi.md#zillow_get_agent_profile_listings) | **GET** /v1/zillow/agent | Get agent profile + listings |
8
+ | [**zillow_get_property_detail**](ZillowApi.md#zillow_get_property_detail) | **GET** /v1/zillow/property/{zpid} | Get property detail |
9
+ | [**zillow_get_property_detail_by_url**](ZillowApi.md#zillow_get_property_detail_by_url) | **GET** /v1/zillow/property | Get property detail by URL |
10
+ | [**zillow_list_coverage_markets**](ZillowApi.md#zillow_list_coverage_markets) | **GET** /v1/zillow/markets | List coverage markets |
11
+ | [**zillow_region_address_suggestions**](ZillowApi.md#zillow_region_address_suggestions) | **GET** /v1/zillow/autocomplete | Region/address suggestions |
12
+ | [**zillow_search_properties**](ZillowApi.md#zillow_search_properties) | **GET** /v1/zillow/search | Search properties |
13
+ | [**zillow_zillow_scraper_health_check**](ZillowApi.md#zillow_zillow_scraper_health_check) | **GET** /v1/zillow/health | Zillow scraper health check |
14
+ | [**zillow_zillow_scraper_health_check_head**](ZillowApi.md#zillow_zillow_scraper_health_check_head) | **HEAD** /v1/zillow/health | Zillow scraper health check |
15
+
16
+
17
+ ## zillow_get_agent_profile_listings
18
+
19
+ > Object zillow_get_agent_profile_listings(opts)
20
+
21
+ Get agent profile + listings
22
+
23
+ Get a Zillow professional's profile and their active listings.
24
+
25
+ ### Examples
26
+
27
+ ```ruby
28
+ require 'time'
29
+ require 'scrapebadger'
30
+ # setup authorization
31
+ ScrapeBadger.configure do |config|
32
+ # Configure API key authorization: ApiKeyAuth
33
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
34
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
35
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
36
+ end
37
+
38
+ api_instance = ScrapeBadger::ZillowApi.new
39
+ opts = {
40
+ username: 'username_example', # String | Zillow profile username
41
+ url: 'url_example' # String | Full Zillow /profile/... URL
42
+ }
43
+
44
+ begin
45
+ # Get agent profile + listings
46
+ result = api_instance.zillow_get_agent_profile_listings(opts)
47
+ p result
48
+ rescue ScrapeBadger::ApiError => e
49
+ puts "Error when calling ZillowApi->zillow_get_agent_profile_listings: #{e}"
50
+ end
51
+ ```
52
+
53
+ #### Using the zillow_get_agent_profile_listings_with_http_info variant
54
+
55
+ This returns an Array which contains the response data, status code and headers.
56
+
57
+ > <Array(Object, Integer, Hash)> zillow_get_agent_profile_listings_with_http_info(opts)
58
+
59
+ ```ruby
60
+ begin
61
+ # Get agent profile + listings
62
+ data, status_code, headers = api_instance.zillow_get_agent_profile_listings_with_http_info(opts)
63
+ p status_code # => 2xx
64
+ p headers # => { ... }
65
+ p data # => Object
66
+ rescue ScrapeBadger::ApiError => e
67
+ puts "Error when calling ZillowApi->zillow_get_agent_profile_listings_with_http_info: #{e}"
68
+ end
69
+ ```
70
+
71
+ ### Parameters
72
+
73
+ | Name | Type | Description | Notes |
74
+ | ---- | ---- | ----------- | ----- |
75
+ | **username** | **String** | Zillow profile username | [optional] |
76
+ | **url** | **String** | Full Zillow /profile/... URL | [optional] |
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
+ ## zillow_get_property_detail
93
+
94
+ > Object zillow_get_property_detail(zpid)
95
+
96
+ Get property detail
97
+
98
+ Get a single Zillow property's full detail by zpid.
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::ZillowApi.new
114
+ zpid = 'zpid_example' # String |
115
+
116
+ begin
117
+ # Get property detail
118
+ result = api_instance.zillow_get_property_detail(zpid)
119
+ p result
120
+ rescue ScrapeBadger::ApiError => e
121
+ puts "Error when calling ZillowApi->zillow_get_property_detail: #{e}"
122
+ end
123
+ ```
124
+
125
+ #### Using the zillow_get_property_detail_with_http_info variant
126
+
127
+ This returns an Array which contains the response data, status code and headers.
128
+
129
+ > <Array(Object, Integer, Hash)> zillow_get_property_detail_with_http_info(zpid)
130
+
131
+ ```ruby
132
+ begin
133
+ # Get property detail
134
+ data, status_code, headers = api_instance.zillow_get_property_detail_with_http_info(zpid)
135
+ p status_code # => 2xx
136
+ p headers # => { ... }
137
+ p data # => Object
138
+ rescue ScrapeBadger::ApiError => e
139
+ puts "Error when calling ZillowApi->zillow_get_property_detail_with_http_info: #{e}"
140
+ end
141
+ ```
142
+
143
+ ### Parameters
144
+
145
+ | Name | Type | Description | Notes |
146
+ | ---- | ---- | ----------- | ----- |
147
+ | **zpid** | **String** | | |
148
+
149
+ ### Return type
150
+
151
+ **Object**
152
+
153
+ ### Authorization
154
+
155
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
156
+
157
+ ### HTTP request headers
158
+
159
+ - **Content-Type**: Not defined
160
+ - **Accept**: application/json
161
+
162
+
163
+ ## zillow_get_property_detail_by_url
164
+
165
+ > Object zillow_get_property_detail_by_url(url)
166
+
167
+ Get property detail by URL
168
+
169
+ Get a single Zillow property's full detail by its homedetails URL.
170
+
171
+ ### Examples
172
+
173
+ ```ruby
174
+ require 'time'
175
+ require 'scrapebadger'
176
+ # setup authorization
177
+ ScrapeBadger.configure do |config|
178
+ # Configure API key authorization: ApiKeyAuth
179
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
180
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
181
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
182
+ end
183
+
184
+ api_instance = ScrapeBadger::ZillowApi.new
185
+ url = 'url_example' # String | Full Zillow /homedetails/... URL
186
+
187
+ begin
188
+ # Get property detail by URL
189
+ result = api_instance.zillow_get_property_detail_by_url(url)
190
+ p result
191
+ rescue ScrapeBadger::ApiError => e
192
+ puts "Error when calling ZillowApi->zillow_get_property_detail_by_url: #{e}"
193
+ end
194
+ ```
195
+
196
+ #### Using the zillow_get_property_detail_by_url_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)> zillow_get_property_detail_by_url_with_http_info(url)
201
+
202
+ ```ruby
203
+ begin
204
+ # Get property detail by URL
205
+ data, status_code, headers = api_instance.zillow_get_property_detail_by_url_with_http_info(url)
206
+ p status_code # => 2xx
207
+ p headers # => { ... }
208
+ p data # => Object
209
+ rescue ScrapeBadger::ApiError => e
210
+ puts "Error when calling ZillowApi->zillow_get_property_detail_by_url_with_http_info: #{e}"
211
+ end
212
+ ```
213
+
214
+ ### Parameters
215
+
216
+ | Name | Type | Description | Notes |
217
+ | ---- | ---- | ----------- | ----- |
218
+ | **url** | **String** | Full Zillow /homedetails/... URL | |
219
+
220
+ ### Return type
221
+
222
+ **Object**
223
+
224
+ ### Authorization
225
+
226
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
227
+
228
+ ### HTTP request headers
229
+
230
+ - **Content-Type**: Not defined
231
+ - **Accept**: application/json
232
+
233
+
234
+ ## zillow_list_coverage_markets
235
+
236
+ > Object zillow_list_coverage_markets
237
+
238
+ List coverage markets
239
+
240
+ List Zillow coverage regions (US + Canada).
241
+
242
+ ### Examples
243
+
244
+ ```ruby
245
+ require 'time'
246
+ require 'scrapebadger'
247
+ # setup authorization
248
+ ScrapeBadger.configure do |config|
249
+ # Configure API key authorization: ApiKeyAuth
250
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
251
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
252
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
253
+ end
254
+
255
+ api_instance = ScrapeBadger::ZillowApi.new
256
+
257
+ begin
258
+ # List coverage markets
259
+ result = api_instance.zillow_list_coverage_markets
260
+ p result
261
+ rescue ScrapeBadger::ApiError => e
262
+ puts "Error when calling ZillowApi->zillow_list_coverage_markets: #{e}"
263
+ end
264
+ ```
265
+
266
+ #### Using the zillow_list_coverage_markets_with_http_info variant
267
+
268
+ This returns an Array which contains the response data, status code and headers.
269
+
270
+ > <Array(Object, Integer, Hash)> zillow_list_coverage_markets_with_http_info
271
+
272
+ ```ruby
273
+ begin
274
+ # List coverage markets
275
+ data, status_code, headers = api_instance.zillow_list_coverage_markets_with_http_info
276
+ p status_code # => 2xx
277
+ p headers # => { ... }
278
+ p data # => Object
279
+ rescue ScrapeBadger::ApiError => e
280
+ puts "Error when calling ZillowApi->zillow_list_coverage_markets_with_http_info: #{e}"
281
+ end
282
+ ```
283
+
284
+ ### Parameters
285
+
286
+ This endpoint does not need any parameter.
287
+
288
+ ### Return type
289
+
290
+ **Object**
291
+
292
+ ### Authorization
293
+
294
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
295
+
296
+ ### HTTP request headers
297
+
298
+ - **Content-Type**: Not defined
299
+ - **Accept**: application/json
300
+
301
+
302
+ ## zillow_region_address_suggestions
303
+
304
+ > Object zillow_region_address_suggestions(query)
305
+
306
+ Region/address suggestions
307
+
308
+ Resolve a search term to Zillow regions/addresses.
309
+
310
+ ### Examples
311
+
312
+ ```ruby
313
+ require 'time'
314
+ require 'scrapebadger'
315
+ # setup authorization
316
+ ScrapeBadger.configure do |config|
317
+ # Configure API key authorization: ApiKeyAuth
318
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
319
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
320
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
321
+ end
322
+
323
+ api_instance = ScrapeBadger::ZillowApi.new
324
+ query = 'query_example' # String | Partial location — city, ZIP, address, neighborhood
325
+
326
+ begin
327
+ # Region/address suggestions
328
+ result = api_instance.zillow_region_address_suggestions(query)
329
+ p result
330
+ rescue ScrapeBadger::ApiError => e
331
+ puts "Error when calling ZillowApi->zillow_region_address_suggestions: #{e}"
332
+ end
333
+ ```
334
+
335
+ #### Using the zillow_region_address_suggestions_with_http_info variant
336
+
337
+ This returns an Array which contains the response data, status code and headers.
338
+
339
+ > <Array(Object, Integer, Hash)> zillow_region_address_suggestions_with_http_info(query)
340
+
341
+ ```ruby
342
+ begin
343
+ # Region/address suggestions
344
+ data, status_code, headers = api_instance.zillow_region_address_suggestions_with_http_info(query)
345
+ p status_code # => 2xx
346
+ p headers # => { ... }
347
+ p data # => Object
348
+ rescue ScrapeBadger::ApiError => e
349
+ puts "Error when calling ZillowApi->zillow_region_address_suggestions_with_http_info: #{e}"
350
+ end
351
+ ```
352
+
353
+ ### Parameters
354
+
355
+ | Name | Type | Description | Notes |
356
+ | ---- | ---- | ----------- | ----- |
357
+ | **query** | **String** | Partial location — city, ZIP, address, neighborhood | |
358
+
359
+ ### Return type
360
+
361
+ **Object**
362
+
363
+ ### Authorization
364
+
365
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
366
+
367
+ ### HTTP request headers
368
+
369
+ - **Content-Type**: Not defined
370
+ - **Accept**: application/json
371
+
372
+
373
+ ## zillow_search_properties
374
+
375
+ > Object zillow_search_properties(location, opts)
376
+
377
+ Search properties
378
+
379
+ Search Zillow for for-sale / for-rent / recently-sold properties.
380
+
381
+ ### Examples
382
+
383
+ ```ruby
384
+ require 'time'
385
+ require 'scrapebadger'
386
+ # setup authorization
387
+ ScrapeBadger.configure do |config|
388
+ # Configure API key authorization: ApiKeyAuth
389
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
390
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
391
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
392
+ end
393
+
394
+ api_instance = ScrapeBadger::ZillowApi.new
395
+ location = 'location_example' # String | City/state, ZIP, address or neighborhood
396
+ opts = {
397
+ status: 'status_example', # String | for_sale|for_rent|sold
398
+ page: 56, # Integer |
399
+ sort: 'sort_example', # String | homes_for_you|newest|price_high_to_low|price_low_to_high|bedrooms|bathrooms|square_feet|lot_size|year_built
400
+ price_min: 56, # Integer |
401
+ price_max: 56, # Integer |
402
+ beds_min: 56, # Integer |
403
+ baths_min: 8.14, # Float |
404
+ home_type: 'home_type_example', # String | houses|condos|townhomes|apartments|manufactured|lots|multi_family
405
+ sqft_min: 56, # Integer |
406
+ sqft_max: 56, # Integer |
407
+ lot_min: 56, # Integer |
408
+ lot_max: 56, # Integer |
409
+ year_built_min: 56, # Integer |
410
+ year_built_max: 56, # Integer |
411
+ hoa_max: 56, # Integer |
412
+ keywords: 'keywords_example', # String |
413
+ days_on: 'days_on_example', # String |
414
+ north: 8.14, # Float | Map bounds for tiling past the 820 cap
415
+ south: 8.14, # Float |
416
+ east: 8.14, # Float |
417
+ west: 8.14 # Float |
418
+ }
419
+
420
+ begin
421
+ # Search properties
422
+ result = api_instance.zillow_search_properties(location, opts)
423
+ p result
424
+ rescue ScrapeBadger::ApiError => e
425
+ puts "Error when calling ZillowApi->zillow_search_properties: #{e}"
426
+ end
427
+ ```
428
+
429
+ #### Using the zillow_search_properties_with_http_info variant
430
+
431
+ This returns an Array which contains the response data, status code and headers.
432
+
433
+ > <Array(Object, Integer, Hash)> zillow_search_properties_with_http_info(location, opts)
434
+
435
+ ```ruby
436
+ begin
437
+ # Search properties
438
+ data, status_code, headers = api_instance.zillow_search_properties_with_http_info(location, opts)
439
+ p status_code # => 2xx
440
+ p headers # => { ... }
441
+ p data # => Object
442
+ rescue ScrapeBadger::ApiError => e
443
+ puts "Error when calling ZillowApi->zillow_search_properties_with_http_info: #{e}"
444
+ end
445
+ ```
446
+
447
+ ### Parameters
448
+
449
+ | Name | Type | Description | Notes |
450
+ | ---- | ---- | ----------- | ----- |
451
+ | **location** | **String** | City/state, ZIP, address or neighborhood | |
452
+ | **status** | **String** | for_sale|for_rent|sold | [optional][default to &#39;for_sale&#39;] |
453
+ | **page** | **Integer** | | [optional][default to 1] |
454
+ | **sort** | **String** | homes_for_you|newest|price_high_to_low|price_low_to_high|bedrooms|bathrooms|square_feet|lot_size|year_built | [optional] |
455
+ | **price_min** | **Integer** | | [optional] |
456
+ | **price_max** | **Integer** | | [optional] |
457
+ | **beds_min** | **Integer** | | [optional] |
458
+ | **baths_min** | **Float** | | [optional] |
459
+ | **home_type** | **String** | houses|condos|townhomes|apartments|manufactured|lots|multi_family | [optional] |
460
+ | **sqft_min** | **Integer** | | [optional] |
461
+ | **sqft_max** | **Integer** | | [optional] |
462
+ | **lot_min** | **Integer** | | [optional] |
463
+ | **lot_max** | **Integer** | | [optional] |
464
+ | **year_built_min** | **Integer** | | [optional] |
465
+ | **year_built_max** | **Integer** | | [optional] |
466
+ | **hoa_max** | **Integer** | | [optional] |
467
+ | **keywords** | **String** | | [optional] |
468
+ | **days_on** | **String** | | [optional] |
469
+ | **north** | **Float** | Map bounds for tiling past the 820 cap | [optional] |
470
+ | **south** | **Float** | | [optional] |
471
+ | **east** | **Float** | | [optional] |
472
+ | **west** | **Float** | | [optional] |
473
+
474
+ ### Return type
475
+
476
+ **Object**
477
+
478
+ ### Authorization
479
+
480
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
481
+
482
+ ### HTTP request headers
483
+
484
+ - **Content-Type**: Not defined
485
+ - **Accept**: application/json
486
+
487
+
488
+ ## zillow_zillow_scraper_health_check
489
+
490
+ > Object zillow_zillow_scraper_health_check
491
+
492
+ Zillow scraper health check
493
+
494
+ Check health of the Zillow scraper service (accepts HEAD for UptimeRobot).
495
+
496
+ ### Examples
497
+
498
+ ```ruby
499
+ require 'time'
500
+ require 'scrapebadger'
501
+ # setup authorization
502
+ ScrapeBadger.configure do |config|
503
+ # Configure API key authorization: ApiKeyAuth
504
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
505
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
506
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
507
+ end
508
+
509
+ api_instance = ScrapeBadger::ZillowApi.new
510
+
511
+ begin
512
+ # Zillow scraper health check
513
+ result = api_instance.zillow_zillow_scraper_health_check
514
+ p result
515
+ rescue ScrapeBadger::ApiError => e
516
+ puts "Error when calling ZillowApi->zillow_zillow_scraper_health_check: #{e}"
517
+ end
518
+ ```
519
+
520
+ #### Using the zillow_zillow_scraper_health_check_with_http_info variant
521
+
522
+ This returns an Array which contains the response data, status code and headers.
523
+
524
+ > <Array(Object, Integer, Hash)> zillow_zillow_scraper_health_check_with_http_info
525
+
526
+ ```ruby
527
+ begin
528
+ # Zillow scraper health check
529
+ data, status_code, headers = api_instance.zillow_zillow_scraper_health_check_with_http_info
530
+ p status_code # => 2xx
531
+ p headers # => { ... }
532
+ p data # => Object
533
+ rescue ScrapeBadger::ApiError => e
534
+ puts "Error when calling ZillowApi->zillow_zillow_scraper_health_check_with_http_info: #{e}"
535
+ end
536
+ ```
537
+
538
+ ### Parameters
539
+
540
+ This endpoint does not need any parameter.
541
+
542
+ ### Return type
543
+
544
+ **Object**
545
+
546
+ ### Authorization
547
+
548
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
549
+
550
+ ### HTTP request headers
551
+
552
+ - **Content-Type**: Not defined
553
+ - **Accept**: application/json
554
+
555
+
556
+ ## zillow_zillow_scraper_health_check_head
557
+
558
+ > Object zillow_zillow_scraper_health_check_head
559
+
560
+ Zillow scraper health check
561
+
562
+ Check health of the Zillow scraper service (accepts HEAD for UptimeRobot).
563
+
564
+ ### Examples
565
+
566
+ ```ruby
567
+ require 'time'
568
+ require 'scrapebadger'
569
+ # setup authorization
570
+ ScrapeBadger.configure do |config|
571
+ # Configure API key authorization: ApiKeyAuth
572
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
573
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
574
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
575
+ end
576
+
577
+ api_instance = ScrapeBadger::ZillowApi.new
578
+
579
+ begin
580
+ # Zillow scraper health check
581
+ result = api_instance.zillow_zillow_scraper_health_check_head
582
+ p result
583
+ rescue ScrapeBadger::ApiError => e
584
+ puts "Error when calling ZillowApi->zillow_zillow_scraper_health_check_head: #{e}"
585
+ end
586
+ ```
587
+
588
+ #### Using the zillow_zillow_scraper_health_check_head_with_http_info variant
589
+
590
+ This returns an Array which contains the response data, status code and headers.
591
+
592
+ > <Array(Object, Integer, Hash)> zillow_zillow_scraper_health_check_head_with_http_info
593
+
594
+ ```ruby
595
+ begin
596
+ # Zillow scraper health check
597
+ data, status_code, headers = api_instance.zillow_zillow_scraper_health_check_head_with_http_info
598
+ p status_code # => 2xx
599
+ p headers # => { ... }
600
+ p data # => Object
601
+ rescue ScrapeBadger::ApiError => e
602
+ puts "Error when calling ZillowApi->zillow_zillow_scraper_health_check_head_with_http_info: #{e}"
603
+ end
604
+ ```
605
+
606
+ ### Parameters
607
+
608
+ This endpoint does not need any parameter.
609
+
610
+ ### Return type
611
+
612
+ **Object**
613
+
614
+ ### Authorization
615
+
616
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
617
+
618
+ ### HTTP request headers
619
+
620
+ - **Content-Type**: Not defined
621
+ - **Accept**: application/json
622
+
data/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="scrape-badger"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="scrapebadger-ruby"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'