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
@@ -0,0 +1,258 @@
1
+ =begin
2
+ #ScrapeBadger API
3
+
4
+ #Unified credit-based scraping API. https://docs.scrapebadger.com
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for ScrapeBadger::AmazonApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'AmazonApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = ScrapeBadger::AmazonApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of AmazonApi' do
30
+ it 'should create an instance of AmazonApi' do
31
+ expect(@api_instance).to be_instance_of(ScrapeBadger::AmazonApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for amazon_amazon_scraper_health_check
36
+ # Amazon scraper health check
37
+ # Check health of the Amazon scraper service (accepts HEAD for UptimeRobot).
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Object]
40
+ describe 'amazon_amazon_scraper_health_check test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
+ end
44
+ end
45
+
46
+ # unit tests for amazon_amazon_scraper_health_check_head
47
+ # Amazon scraper health check
48
+ # Check health of the Amazon scraper service (accepts HEAD for UptimeRobot).
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [Object]
51
+ describe 'amazon_amazon_scraper_health_check_head test' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
54
+ end
55
+ end
56
+
57
+ # unit tests for amazon_bestsellers_by_category
58
+ # Bestsellers by category
59
+ # Top-selling products for a category (browse node).
60
+ # @param [Hash] opts the optional parameters
61
+ # @option opts [String] :domain
62
+ # @option opts [String] :category Bestsellers node id or slug
63
+ # @option opts [Integer] :page
64
+ # @return [Object]
65
+ describe 'amazon_bestsellers_by_category test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
+ end
69
+ end
70
+
71
+ # unit tests for amazon_browse_node_category_listing
72
+ # Browse-node category listing
73
+ # List products within an Amazon browse-node category.
74
+ # @param node Amazon browse-node id
75
+ # @param [Hash] opts the optional parameters
76
+ # @option opts [String] :domain
77
+ # @option opts [Integer] :page
78
+ # @option opts [String] :sort_by
79
+ # @return [Object]
80
+ describe 'amazon_browse_node_category_listing test' do
81
+ it 'should work' do
82
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
83
+ end
84
+ end
85
+
86
+ # unit tests for amazon_get_all_seller_offers_buybox
87
+ # Get all seller offers (buybox)
88
+ # All third-party offers for an ASIN, including the Buy Box winner.
89
+ # @param asin
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [String] :domain
92
+ # @option opts [String] :zip
93
+ # @return [Object]
94
+ describe 'amazon_get_all_seller_offers_buybox test' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
97
+ end
98
+ end
99
+
100
+ # unit tests for amazon_get_product_detail
101
+ # Get product detail
102
+ # Full product detail by ASIN (price, variants, badges, buybox, ranks…).
103
+ # @param asin
104
+ # @param [Hash] opts the optional parameters
105
+ # @option opts [String] :domain
106
+ # @option opts [String] :zip Delivery postal/zip for localized buybox
107
+ # @option opts [String] :language
108
+ # @return [Object]
109
+ describe 'amazon_get_product_detail test' do
110
+ it 'should work' do
111
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
112
+ end
113
+ end
114
+
115
+ # unit tests for amazon_get_product_reviews
116
+ # Get product reviews
117
+ # Customer reviews for an ASIN (featured + paginated, with filters).
118
+ # @param asin
119
+ # @param [Hash] opts the optional parameters
120
+ # @option opts [String] :domain
121
+ # @option opts [Integer] :page Review page (1-100, ~10 reviews/page)
122
+ # @option opts [String] :sort_by helpful | recent
123
+ # @option opts [String] :star one_star..five_star | positive | critical
124
+ # @option opts [Boolean] :verified_only
125
+ # @option opts [Boolean] :media_only
126
+ # @return [Object]
127
+ describe 'amazon_get_product_reviews test' do
128
+ it 'should work' do
129
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
130
+ end
131
+ end
132
+
133
+ # unit tests for amazon_get_seller_feedback
134
+ # Get seller feedback
135
+ # Buyer feedback entries for a seller.
136
+ # @param seller_id
137
+ # @param [Hash] opts the optional parameters
138
+ # @option opts [String] :domain
139
+ # @option opts [Integer] :page
140
+ # @return [Object]
141
+ describe 'amazon_get_seller_feedback test' do
142
+ it 'should work' do
143
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
144
+ end
145
+ end
146
+
147
+ # unit tests for amazon_get_seller_profile
148
+ # Get seller profile
149
+ # Seller profile, ratings and feedback summary.
150
+ # @param seller_id
151
+ # @param [Hash] opts the optional parameters
152
+ # @option opts [String] :domain
153
+ # @return [Object]
154
+ describe 'amazon_get_seller_profile test' do
155
+ it 'should work' do
156
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
157
+ end
158
+ end
159
+
160
+ # unit tests for amazon_get_seller_storefront_products
161
+ # Get seller storefront products
162
+ # Products listed in a seller's storefront.
163
+ # @param seller_id
164
+ # @param [Hash] opts the optional parameters
165
+ # @option opts [String] :domain
166
+ # @option opts [Integer] :page
167
+ # @return [Object]
168
+ describe 'amazon_get_seller_storefront_products test' do
169
+ it 'should work' do
170
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
171
+ end
172
+ end
173
+
174
+ # unit tests for amazon_keyword_suggestions
175
+ # Keyword suggestions
176
+ # Get Amazon search autocomplete suggestions for keyword research.
177
+ # @param query Partial search term
178
+ # @param [Hash] opts the optional parameters
179
+ # @option opts [String] :domain
180
+ # @return [Object]
181
+ describe 'amazon_keyword_suggestions test' do
182
+ it 'should work' do
183
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
184
+ end
185
+ end
186
+
187
+ # unit tests for amazon_list_category_aliases
188
+ # List category aliases
189
+ # List common Amazon department/category aliases and bestseller nodes.
190
+ # @param [Hash] opts the optional parameters
191
+ # @option opts [String] :domain
192
+ # @return [Object]
193
+ describe 'amazon_list_category_aliases test' do
194
+ it 'should work' do
195
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
196
+ end
197
+ end
198
+
199
+ # unit tests for amazon_list_marketplaces
200
+ # List marketplaces
201
+ # List all supported Amazon marketplaces.
202
+ # @param [Hash] opts the optional parameters
203
+ # @return [Object]
204
+ describe 'amazon_list_marketplaces test' do
205
+ it 'should work' do
206
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
207
+ end
208
+ end
209
+
210
+ # unit tests for amazon_new_releases_by_category
211
+ # New releases by category
212
+ # Newly released products for a category (browse node).
213
+ # @param [Hash] opts the optional parameters
214
+ # @option opts [String] :domain
215
+ # @option opts [String] :category
216
+ # @option opts [Integer] :page
217
+ # @return [Object]
218
+ describe 'amazon_new_releases_by_category test' do
219
+ it 'should work' do
220
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
221
+ end
222
+ end
223
+
224
+ # unit tests for amazon_search_amazon_products
225
+ # Search Amazon products
226
+ # Search the Amazon catalog with filters and sorting.
227
+ # @param query Search keywords
228
+ # @param [Hash] opts the optional parameters
229
+ # @option opts [String] :domain Amazon marketplace TLD or code (com, co.uk, de…)
230
+ # @option opts [Integer] :page
231
+ # @option opts [String] :sort_by relevance | price_low_to_high | price_high_to_low | avg_review | newest
232
+ # @option opts [String] :category Department/category alias (i= param)
233
+ # @option opts [Float] :min_price
234
+ # @option opts [Float] :max_price
235
+ # @option opts [String] :zip Delivery postal/zip code for localized pricing
236
+ # @option opts [String] :language Locale for results, e.g. en_US, fr_FR
237
+ # @return [Object]
238
+ describe 'amazon_search_amazon_products test' do
239
+ it 'should work' do
240
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
241
+ end
242
+ end
243
+
244
+ # unit tests for amazon_today_s_deals
245
+ # Today's deals
246
+ # Current Amazon deals (lightning deals, best deals).
247
+ # @param [Hash] opts the optional parameters
248
+ # @option opts [String] :domain
249
+ # @option opts [String] :category
250
+ # @option opts [Integer] :page
251
+ # @return [Object]
252
+ describe 'amazon_today_s_deals test' do
253
+ it 'should work' do
254
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
255
+ end
256
+ end
257
+
258
+ end
@@ -0,0 +1,98 @@
1
+ =begin
2
+ #ScrapeBadger API
3
+
4
+ #Unified credit-based scraping API. https://docs.scrapebadger.com
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for ScrapeBadger::ApartmentsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ApartmentsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = ScrapeBadger::ApartmentsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ApartmentsApi' do
30
+ it 'should create an instance of ApartmentsApi' do
31
+ expect(@api_instance).to be_instance_of(ScrapeBadger::ApartmentsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for apartments_apartments_scraper_health_check
36
+ # Apartments scraper health check
37
+ # Check health of the Apartments scraper service (accepts HEAD for UptimeRobot).
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Object]
40
+ describe 'apartments_apartments_scraper_health_check test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
+ end
44
+ end
45
+
46
+ # unit tests for apartments_apartments_scraper_health_check_head
47
+ # Apartments scraper health check
48
+ # Check health of the Apartments scraper service (accepts HEAD for UptimeRobot).
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [Object]
51
+ describe 'apartments_apartments_scraper_health_check_head test' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
54
+ end
55
+ end
56
+
57
+ # unit tests for apartments_get_property_detail_by_slug_id
58
+ # Get property detail by slug + id
59
+ # Get a property by its SEO slug and 7-character listing id.
60
+ # @param slug
61
+ # @param property_id
62
+ # @param [Hash] opts the optional parameters
63
+ # @return [Object]
64
+ describe 'apartments_get_property_detail_by_slug_id test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
+ end
68
+ end
69
+
70
+ # unit tests for apartments_get_property_detail_by_url
71
+ # Get property detail by URL
72
+ # Get an apartments.com property with full per-unit pricing and availability.
73
+ # @param url Full apartments.com property URL, e.g. https://www.apartments.com/urbane-kansas-city-mo/wcd6e5k/
74
+ # @param [Hash] opts the optional parameters
75
+ # @return [Object]
76
+ describe 'apartments_get_property_detail_by_url test' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
79
+ end
80
+ end
81
+
82
+ # unit tests for apartments_search_rental_listings
83
+ # Search rental listings
84
+ # Search apartments.com for rental properties. 40 cards per page.
85
+ # @param location apartments.com location slug, e.g. 'kansas-city-mo'
86
+ # @param [Hash] opts the optional parameters
87
+ # @option opts [Integer] :page
88
+ # @option opts [Integer] :beds 0=studio, 1-4 bedrooms
89
+ # @option opts [Integer] :min_price
90
+ # @option opts [Integer] :max_price
91
+ # @return [Object]
92
+ describe 'apartments_search_rental_listings test' do
93
+ it 'should work' do
94
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
95
+ end
96
+ end
97
+
98
+ end
@@ -0,0 +1,109 @@
1
+ =begin
2
+ #ScrapeBadger API
3
+
4
+ #Unified credit-based scraping API. https://docs.scrapebadger.com
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for ScrapeBadger::BaiduApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'BaiduApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = ScrapeBadger::BaiduApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of BaiduApi' do
30
+ it 'should create an instance of BaiduApi' do
31
+ expect(@api_instance).to be_instance_of(ScrapeBadger::BaiduApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for baidu_baidu_image_search
36
+ # Baidu image search
37
+ # Baidu image search via the acjson JSON API.
38
+ # @param query Search keywords
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [Integer] :page 30 images per page
41
+ # @return [Object]
42
+ describe 'baidu_baidu_image_search test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ # unit tests for baidu_baidu_news_search
49
+ # Baidu news search
50
+ # Baidu news vertical — articles with source, publish date and real URLs.
51
+ # @param query Search keywords
52
+ # @param [Hash] opts the optional parameters
53
+ # @option opts [Integer] :page
54
+ # @return [Object]
55
+ describe 'baidu_baidu_news_search test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
58
+ end
59
+ end
60
+
61
+ # unit tests for baidu_baidu_scraper_health_check
62
+ # Baidu scraper health check
63
+ # Check health of the Baidu scraper service (accepts HEAD for UptimeRobot).
64
+ # @param [Hash] opts the optional parameters
65
+ # @return [Object]
66
+ describe 'baidu_baidu_scraper_health_check test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
72
+ # unit tests for baidu_baidu_scraper_health_check_head
73
+ # Baidu scraper health check
74
+ # Check health of the Baidu scraper service (accepts HEAD for UptimeRobot).
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [Object]
77
+ describe 'baidu_baidu_scraper_health_check_head test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
80
+ end
81
+ end
82
+
83
+ # unit tests for baidu_baidu_web_search
84
+ # Baidu web search
85
+ # Baidu web SERP — organic results with real target URLs, related searches, total count.
86
+ # @param query Search keywords, e.g. '咖啡机' or 'coffee machine'
87
+ # @param [Hash] opts the optional parameters
88
+ # @option opts [Integer] :page Result page (10 results per page)
89
+ # @option opts [Integer] :num Results per page (rn)
90
+ # @return [Object]
91
+ describe 'baidu_baidu_web_search test' do
92
+ it 'should work' do
93
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
94
+ end
95
+ end
96
+
97
+ # unit tests for baidu_search_suggestions
98
+ # Search suggestions
99
+ # Baidu search-box suggestions.
100
+ # @param query Partial search term, e.g. '咖啡' or 'coff'
101
+ # @param [Hash] opts the optional parameters
102
+ # @return [Object]
103
+ describe 'baidu_search_suggestions test' do
104
+ it 'should work' do
105
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
106
+ end
107
+ end
108
+
109
+ end
@@ -0,0 +1,141 @@
1
+ =begin
2
+ #ScrapeBadger API
3
+
4
+ #Unified credit-based scraping API. https://docs.scrapebadger.com
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for ScrapeBadger::BingApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'BingApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = ScrapeBadger::BingApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of BingApi' do
30
+ it 'should create an instance of BingApi' do
31
+ expect(@api_instance).to be_instance_of(ScrapeBadger::BingApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for bing_bing_scraper_health_check
36
+ # Bing scraper health check
37
+ # Check health of the Bing scraper service (accepts HEAD for UptimeRobot).
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Object]
40
+ describe 'bing_bing_scraper_health_check test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
+ end
44
+ end
45
+
46
+ # unit tests for bing_bing_scraper_health_check_head
47
+ # Bing scraper health check
48
+ # Check health of the Bing scraper service (accepts HEAD for UptimeRobot).
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [Object]
51
+ describe 'bing_bing_scraper_health_check_head test' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
54
+ end
55
+ end
56
+
57
+ # unit tests for bing_image_search
58
+ # Image search
59
+ # Bing Images — thumbnail, full-size and source URL per result.
60
+ # @param query Search keywords, e.g. 'golden retriever'
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [String] :market Bing market code, e.g. 'en-US', 'en-GB', 'de-DE'. See /markets.
63
+ # @option opts [Integer] :count Results to return
64
+ # @option opts [String] :safe_search off | moderate | strict
65
+ # @return [Object]
66
+ describe 'bing_image_search test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
72
+ # unit tests for bing_list_supported_markets
73
+ # List supported markets
74
+ # Supported Bing market codes. Free — costs no credits.
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [Object]
77
+ describe 'bing_list_supported_markets test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
80
+ end
81
+ end
82
+
83
+ # unit tests for bing_news_search
84
+ # News search
85
+ # Bing News — headline, source, published time and snippet per article.
86
+ # @param query Search keywords, e.g. 'interest rates'
87
+ # @param [Hash] opts the optional parameters
88
+ # @option opts [String] :market Bing market code, e.g. 'en-US', 'en-GB', 'de-DE'. See /markets.
89
+ # @option opts [String] :freshness day | week | month — restrict to recent articles
90
+ # @return [Object]
91
+ describe 'bing_news_search test' do
92
+ it 'should work' do
93
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
94
+ end
95
+ end
96
+
97
+ # unit tests for bing_search_suggestions
98
+ # Search suggestions
99
+ # Bing search-box query suggestions.
100
+ # @param query Partial search term, e.g. 'coff'
101
+ # @param [Hash] opts the optional parameters
102
+ # @option opts [String] :market Bing market code, e.g. 'en-US', 'en-GB', 'de-DE'. See /markets.
103
+ # @return [Object]
104
+ describe 'bing_search_suggestions test' do
105
+ it 'should work' do
106
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
107
+ end
108
+ end
109
+
110
+ # unit tests for bing_video_search
111
+ # Video search
112
+ # Bing Videos — title, thumbnail, duration, publisher and source per result.
113
+ # @param query Search keywords, e.g. 'espresso tutorial'
114
+ # @param [Hash] opts the optional parameters
115
+ # @option opts [String] :market Bing market code, e.g. 'en-US', 'en-GB', 'de-DE'. See /markets.
116
+ # @option opts [Integer] :count Results to return
117
+ # @option opts [String] :safe_search off | moderate | strict
118
+ # @return [Object]
119
+ describe 'bing_video_search test' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
122
+ end
123
+ end
124
+
125
+ # unit tests for bing_web_search
126
+ # Web search
127
+ # Bing web SERP — organic results, ads, related searches and total count.
128
+ # @param query Search keywords, e.g. 'coffee machine'
129
+ # @param [Hash] opts the optional parameters
130
+ # @option opts [String] :market Bing market code, e.g. 'en-US', 'en-GB', 'de-DE'. See /markets.
131
+ # @option opts [Integer] :count Results per page (1-50)
132
+ # @option opts [Integer] :offset Zero-based result offset for pagination
133
+ # @option opts [String] :safe_search off | moderate | strict (default moderate)
134
+ # @return [Object]
135
+ describe 'bing_web_search test' do
136
+ it 'should work' do
137
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
138
+ end
139
+ end
140
+
141
+ end