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,169 @@
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::VintedApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'VintedApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = ScrapeBadger::VintedApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of VintedApi' do
30
+ it 'should create an instance of VintedApi' do
31
+ expect(@api_instance).to be_instance_of(ScrapeBadger::VintedApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for vinted_get_item_details
36
+ # Get item details
37
+ # Get detailed information about a Vinted item.
38
+ # @param item_id
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :market
41
+ # @return [Object]
42
+ describe 'vinted_get_item_details 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 vinted_get_user_profile
49
+ # Get user profile
50
+ # Get a Vinted user's profile.
51
+ # @param user_id
52
+ # @param [Hash] opts the optional parameters
53
+ # @option opts [String] :market
54
+ # @return [Object]
55
+ describe 'vinted_get_user_profile 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 vinted_get_user_s_listed_items
62
+ # Get user's listed items
63
+ # Get items listed by a Vinted user.
64
+ # @param user_id
65
+ # @param [Hash] opts the optional parameters
66
+ # @option opts [String] :market
67
+ # @option opts [Integer] :page
68
+ # @option opts [Integer] :per_page
69
+ # @return [Object]
70
+ describe 'vinted_get_user_s_listed_items test' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
73
+ end
74
+ end
75
+
76
+ # unit tests for vinted_list_colors
77
+ # List colors
78
+ # Get available Vinted colors for filtering.
79
+ # @param [Hash] opts the optional parameters
80
+ # @option opts [String] :market
81
+ # @return [Object]
82
+ describe 'vinted_list_colors test' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
85
+ end
86
+ end
87
+
88
+ # unit tests for vinted_list_item_conditions
89
+ # List item conditions
90
+ # Get available item condition statuses.
91
+ # @param [Hash] opts the optional parameters
92
+ # @option opts [String] :market
93
+ # @return [Object]
94
+ describe 'vinted_list_item_conditions 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 vinted_list_markets
101
+ # List markets
102
+ # List all supported Vinted markets.
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Object]
105
+ describe 'vinted_list_markets test' do
106
+ it 'should work' do
107
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
108
+ end
109
+ end
110
+
111
+ # unit tests for vinted_search_brands
112
+ # Search brands
113
+ # Search Vinted brands.
114
+ # @param keyword Brand search keyword
115
+ # @param [Hash] opts the optional parameters
116
+ # @option opts [String] :market
117
+ # @return [Object]
118
+ describe 'vinted_search_brands test' do
119
+ it 'should work' do
120
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
121
+ end
122
+ end
123
+
124
+ # unit tests for vinted_search_vinted_items
125
+ # Search Vinted items
126
+ # Search Vinted catalog items with filters.
127
+ # @param query Search text
128
+ # @param [Hash] opts the optional parameters
129
+ # @option opts [String] :market Market code
130
+ # @option opts [String] :seller_country Filter to items whose seller is physically located in one of these comma-separated ISO-2 country codes (e.g. 'fr' or 'fr,be'). Market domains federate cross-border EU listings and Vinted has no native country filter, so each item is enriched with its seller's country and non-matching ones are dropped. Adds 1 credit per uncached seller looked up (cached for 7 days).
131
+ # @option opts [Integer] :page
132
+ # @option opts [Integer] :per_page
133
+ # @option opts [Float] :price_from
134
+ # @option opts [Float] :price_to
135
+ # @option opts [String] :brand_ids
136
+ # @option opts [String] :catalog_ids Comma-separated Vinted catalog (category) IDs to restrict the search to, e.g. '1904' or '1904,79'. Vinted applies this before searching, so pagination totals reflect the filtered set. A catalog ID is the `catalog[]` value in a Vinted category URL (vinted.fr/catalog?catalog[]=1904).
137
+ # @option opts [String] :color_ids Comma-separated color IDs
138
+ # @option opts [String] :status_ids Comma-separated condition/status IDs
139
+ # @option opts [String] :order
140
+ # @return [Object]
141
+ describe 'vinted_search_vinted_items 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 vinted_vinted_scraper_health_check
148
+ # Vinted scraper health check
149
+ # Check health of the Vinted scraper service. Accepts ``HEAD`` so external uptime checkers (UptimeRobot uses HEAD by default for HTTP monitors) don't get a 405 Method Not Allowed.
150
+ # @param [Hash] opts the optional parameters
151
+ # @return [Object]
152
+ describe 'vinted_vinted_scraper_health_check test' do
153
+ it 'should work' do
154
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
155
+ end
156
+ end
157
+
158
+ # unit tests for vinted_vinted_scraper_health_check_head
159
+ # Vinted scraper health check
160
+ # Check health of the Vinted scraper service. Accepts ``HEAD`` so external uptime checkers (UptimeRobot uses HEAD by default for HTTP monitors) don't get a 405 Method Not Allowed.
161
+ # @param [Hash] opts the optional parameters
162
+ # @return [Object]
163
+ describe 'vinted_vinted_scraper_health_check_head test' do
164
+ it 'should work' do
165
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
166
+ end
167
+ end
168
+
169
+ end
@@ -0,0 +1,192 @@
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::WalmartApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'WalmartApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = ScrapeBadger::WalmartApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of WalmartApi' do
30
+ it 'should create an instance of WalmartApi' do
31
+ expect(@api_instance).to be_instance_of(ScrapeBadger::WalmartApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for walmart_browse_a_category
36
+ # Browse a category
37
+ # Browse a Walmart category. Same result shape as search. No `sort`: Walmart's browse pages ignore it. Sort on `/search` instead.
38
+ # @param path Browse path, e.g. 'electronics/3944', or a '/cp/...' path
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [Integer] :page
41
+ # @option opts [Float] :min_price
42
+ # @option opts [Float] :max_price
43
+ # @option opts [String] :facet
44
+ # @return [Object]
45
+ describe 'walmart_browse_a_category test' do
46
+ it 'should work' do
47
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
48
+ end
49
+ end
50
+
51
+ # unit tests for walmart_deals_rollbacks_and_clearance
52
+ # Deals, rollbacks and clearance
53
+ # Walmart's current deals, rollbacks and clearance.
54
+ # @param [Hash] opts the optional parameters
55
+ # @option opts [Integer] :page
56
+ # @option opts [Float] :min_price
57
+ # @option opts [Float] :max_price
58
+ # @return [Object]
59
+ describe 'walmart_deals_rollbacks_and_clearance test' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
62
+ end
63
+ end
64
+
65
+ # unit tests for walmart_get_a_seller_s_catalogue
66
+ # Get a seller's catalogue
67
+ # A marketplace seller's catalogue, scoped by a search term.
68
+ # @param seller_id Numeric catalog seller id, e.g. '101040442' — the `catalog_seller_id` on a product, NOT the 32-char hex `seller_id` (which 404s).
69
+ # @param query Required — Walmart returns nothing for a seller facet alone
70
+ # @param [Hash] opts the optional parameters
71
+ # @option opts [Integer] :page
72
+ # @option opts [String] :sort
73
+ # @return [Object]
74
+ describe 'walmart_get_a_seller_s_catalogue test' do
75
+ it 'should work' do
76
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
77
+ end
78
+ end
79
+
80
+ # unit tests for walmart_get_product_detail
81
+ # Get product detail
82
+ # Full product detail — price, stock, specs, variants, seller, reviews sample.
83
+ # @param item_id Walmart usItemId, e.g. '5689919121'
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [Object]
86
+ describe 'walmart_get_product_detail test' do
87
+ it 'should work' do
88
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
89
+ end
90
+ end
91
+
92
+ # unit tests for walmart_get_product_reviews
93
+ # Get product reviews
94
+ # Paginated reviews with the full star histogram. 10 per page.
95
+ # @param item_id Walmart usItemId, e.g. '5689919121'
96
+ # @param [Hash] opts the optional parameters
97
+ # @option opts [Integer] :page
98
+ # @option opts [String] :sort relevancy | submission-desc | submission-asc | rating-desc | rating-asc | helpful
99
+ # @return [Object]
100
+ describe 'walmart_get_product_reviews test' do
101
+ it 'should work' do
102
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
103
+ end
104
+ end
105
+
106
+ # unit tests for walmart_get_seller_profile
107
+ # Get seller profile
108
+ # Marketplace seller profile — contact details, address, rating, policies. No `page`: adding one makes Walmart's own SSR throw. Use `/sellers/{id}/products` for the catalogue.
109
+ # @param seller_id Numeric catalog seller id, e.g. '101040442' — the `catalog_seller_id` on a product, NOT the 32-char hex `seller_id` (which 404s).
110
+ # @param [Hash] opts the optional parameters
111
+ # @return [Object]
112
+ describe 'walmart_get_seller_profile test' do
113
+ it 'should work' do
114
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
115
+ end
116
+ end
117
+
118
+ # unit tests for walmart_get_store_nearby_stores
119
+ # Get store + nearby stores
120
+ # Store detail with hours, per-department services, and nearby stores.
121
+ # @param store_id Walmart store number, e.g. '100'
122
+ # @param [Hash] opts the optional parameters
123
+ # @return [Object]
124
+ describe 'walmart_get_store_nearby_stores test' do
125
+ it 'should work' do
126
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
127
+ end
128
+ end
129
+
130
+ # unit tests for walmart_list_supported_markets
131
+ # List supported markets
132
+ # Supported Walmart markets.
133
+ # @param [Hash] opts the optional parameters
134
+ # @return [Object]
135
+ describe 'walmart_list_supported_markets 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
+ # unit tests for walmart_search_products
142
+ # Search products
143
+ # Search walmart.com. ~40-60 organic products per page; ad tiles are dropped.
144
+ # @param query Search keywords, e.g. 'laptop'
145
+ # @param [Hash] opts the optional parameters
146
+ # @option opts [Integer] :page Results dry up after page 10
147
+ # @option opts [String] :sort best_match | best_seller | price_low | price_high | rating_high | new
148
+ # @option opts [Float] :min_price
149
+ # @option opts [Float] :max_price
150
+ # @option opts [String] :facet Facet filter, e.g. 'brand:HP'
151
+ # @return [Object]
152
+ describe 'walmart_search_products test' do
153
+ it 'should work' do
154
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
155
+ end
156
+ end
157
+
158
+ # unit tests for walmart_search_suggestions
159
+ # Search suggestions
160
+ # Walmart search-box suggestions.
161
+ # @param query Partial search term, e.g. 'lapt'
162
+ # @param [Hash] opts the optional parameters
163
+ # @return [Object]
164
+ describe 'walmart_search_suggestions test' do
165
+ it 'should work' do
166
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
167
+ end
168
+ end
169
+
170
+ # unit tests for walmart_walmart_scraper_health_check
171
+ # Walmart scraper health check
172
+ # Check health of the Walmart scraper service (accepts HEAD for UptimeRobot).
173
+ # @param [Hash] opts the optional parameters
174
+ # @return [Object]
175
+ describe 'walmart_walmart_scraper_health_check test' do
176
+ it 'should work' do
177
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
178
+ end
179
+ end
180
+
181
+ # unit tests for walmart_walmart_scraper_health_check_head
182
+ # Walmart scraper health check
183
+ # Check health of the Walmart scraper service (accepts HEAD for UptimeRobot).
184
+ # @param [Hash] opts the optional parameters
185
+ # @return [Object]
186
+ describe 'walmart_walmart_scraper_health_check_head test' do
187
+ it 'should work' do
188
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
189
+ end
190
+ end
191
+
192
+ end
@@ -0,0 +1,136 @@
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::WebApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'WebApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = ScrapeBadger::WebApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of WebApi' do
30
+ it 'should create an instance of WebApi' do
31
+ expect(@api_instance).to be_instance_of(ScrapeBadger::WebApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for web_detect_anti_bot_and_captcha_systems
36
+ # Detect anti-bot and CAPTCHA systems
37
+ # Detect which anti-bot and CAPTCHA systems are present on a URL. Uses rnet to fetch the page and identify DataDome, Cloudflare, Akamai, Kasada, Amazon WAF, reCAPTCHA, hCaptcha, GeeTest, and more. Cost: 1 credit.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Object]
40
+ describe 'web_detect_anti_bot_and_captcha_systems 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 web_extract_structured_data
47
+ # Extract structured data
48
+ # Extract structured data from a URL using CSS or XPath selectors. (Phase 6)
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [Object]
51
+ describe 'web_extract_structured_data 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 web_get_batch_job_status
58
+ # Get batch job status
59
+ # Get the status of a batch scraping job. (Phase 6)
60
+ # @param job_id
61
+ # @param [Hash] opts the optional parameters
62
+ # @return [Object]
63
+ describe 'web_get_batch_job_status test' do
64
+ it 'should work' do
65
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
66
+ end
67
+ end
68
+
69
+ # unit tests for web_poll_an_auto_unblock_discovery_job
70
+ # Poll an auto-unblock discovery job
71
+ # Return the status + progress narration for an auto-unblock job. Polled by the playground loader. ``job_id`` is an unguessable UUID handed out in the ``202 unblocking`` envelope and acts as a capability token, so any authenticated caller holding it can read the job (this is what lets several users share one discovery run's loader).
72
+ # @param job_id
73
+ # @param [Hash] opts the optional parameters
74
+ # @return [Object]
75
+ describe 'web_poll_an_auto_unblock_discovery_job test' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
78
+ end
79
+ end
80
+
81
+ # unit tests for web_scrape_a_url
82
+ # Scrape a URL
83
+ # Scrape a URL and return its content. The Generic Web Scraping API is fully user-driven: callers pick their own request parameters (engine, proxy tier, country, JS rendering, …). A blocked target surfaces the raw 422 ``blocking_page_detected`` so the caller can tune parameters themselves — we do NOT auto-trigger host discovery. Curated per-origin overrides (which the dedicated scraper APIs depend on) still apply.
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [Object]
86
+ describe 'web_scrape_a_url test' do
87
+ it 'should work' do
88
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
89
+ end
90
+ end
91
+
92
+ # unit tests for web_submit_batch_scraping_job
93
+ # Submit batch scraping job
94
+ # Submit a batch of URLs for scraping. (Phase 6)
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [Object]
97
+ describe 'web_submit_batch_scraping_job test' do
98
+ it 'should work' do
99
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
100
+ end
101
+ end
102
+
103
+ # unit tests for web_take_a_screenshot
104
+ # Take a screenshot
105
+ # Take a screenshot of a URL. (Phase 2 — patchright engine)
106
+ # @param [Hash] opts the optional parameters
107
+ # @return [Object]
108
+ describe 'web_take_a_screenshot test' do
109
+ it 'should work' do
110
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
111
+ end
112
+ end
113
+
114
+ # unit tests for web_web_scraper_health_check
115
+ # Web scraper health check
116
+ # Check health of the web scraper service. Bypasses the proxy abstraction because web-scraper exposes ``/health`` at the root (no ``/api/v1`` prefix, unlike the other scraper services). Accepts ``HEAD`` so external uptime checkers (UptimeRobot uses HEAD by default for HTTP monitors) don't get a 405 Method Not Allowed.
117
+ # @param [Hash] opts the optional parameters
118
+ # @return [Object]
119
+ describe 'web_web_scraper_health_check 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 web_web_scraper_health_check_head
126
+ # Web scraper health check
127
+ # Check health of the web scraper service. Bypasses the proxy abstraction because web-scraper exposes ``/health`` at the root (no ``/api/v1`` prefix, unlike the other scraper services). Accepts ``HEAD`` so external uptime checkers (UptimeRobot uses HEAD by default for HTTP monitors) don't get a 405 Method Not Allowed.
128
+ # @param [Hash] opts the optional parameters
129
+ # @return [Object]
130
+ describe 'web_web_scraper_health_check_head test' do
131
+ it 'should work' do
132
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
133
+ end
134
+ end
135
+
136
+ end
@@ -0,0 +1,137 @@
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::YahooApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'YahooApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = ScrapeBadger::YahooApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of YahooApi' do
30
+ it 'should create an instance of YahooApi' do
31
+ expect(@api_instance).to be_instance_of(ScrapeBadger::YahooApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for yahoo_image_search
36
+ # Image search
37
+ # Yahoo Images — thumbnail, full-size and source URL per result.
38
+ # @param query Search keywords, e.g. 'golden retriever'
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :market Yahoo market code, e.g. 'us', 'uk', 'fr', 'de'. See /markets.
41
+ # @option opts [Integer] :count Results to return
42
+ # @return [Object]
43
+ describe 'yahoo_image_search test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
46
+ end
47
+ end
48
+
49
+ # unit tests for yahoo_list_supported_markets
50
+ # List supported markets
51
+ # Supported Yahoo market codes. Free — costs no credits.
52
+ # @param [Hash] opts the optional parameters
53
+ # @return [Object]
54
+ describe 'yahoo_list_supported_markets test' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ # unit tests for yahoo_news_search
61
+ # News search
62
+ # Yahoo News — headline, source, published time and snippet per article.
63
+ # @param query Search keywords, e.g. 'interest rates'
64
+ # @param [Hash] opts the optional parameters
65
+ # @option opts [String] :market Yahoo market code, e.g. 'us', 'uk', 'fr', 'de'. See /markets.
66
+ # @return [Object]
67
+ describe 'yahoo_news_search test' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
70
+ end
71
+ end
72
+
73
+ # unit tests for yahoo_search_suggestions
74
+ # Search suggestions
75
+ # Yahoo search-box query suggestions.
76
+ # @param query Partial search term, e.g. 'coff'
77
+ # @param [Hash] opts the optional parameters
78
+ # @option opts [String] :market Yahoo market code, e.g. 'us', 'uk', 'fr', 'de'. See /markets.
79
+ # @return [Object]
80
+ describe 'yahoo_search_suggestions 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 yahoo_video_search
87
+ # Video search
88
+ # Yahoo Videos — title, thumbnail, duration, publisher and source per result.
89
+ # @param query Search keywords, e.g. 'espresso tutorial'
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [String] :market Yahoo market code, e.g. 'us', 'uk', 'fr', 'de'. See /markets.
92
+ # @option opts [Integer] :count Results to return
93
+ # @return [Object]
94
+ describe 'yahoo_video_search 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 yahoo_web_search
101
+ # Web search
102
+ # Yahoo web SERP — organic results, ads, related searches and total count.
103
+ # @param query Search keywords, e.g. 'coffee machine'
104
+ # @param [Hash] opts the optional parameters
105
+ # @option opts [String] :market Yahoo market code, e.g. 'us', 'uk', 'fr', 'de'. See /markets.
106
+ # @option opts [Integer] :offset Zero-based result offset for pagination
107
+ # @option opts [String] :safe_search off | moderate | strict (default moderate)
108
+ # @return [Object]
109
+ describe 'yahoo_web_search 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 yahoo_yahoo_scraper_health_check
116
+ # Yahoo scraper health check
117
+ # Check health of the Yahoo scraper service (accepts HEAD for UptimeRobot).
118
+ # @param [Hash] opts the optional parameters
119
+ # @return [Object]
120
+ describe 'yahoo_yahoo_scraper_health_check test' do
121
+ it 'should work' do
122
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
123
+ end
124
+ end
125
+
126
+ # unit tests for yahoo_yahoo_scraper_health_check_head
127
+ # Yahoo scraper health check
128
+ # Check health of the Yahoo scraper service (accepts HEAD for UptimeRobot).
129
+ # @param [Hash] opts the optional parameters
130
+ # @return [Object]
131
+ describe 'yahoo_yahoo_scraper_health_check_head test' do
132
+ it 'should work' do
133
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
134
+ end
135
+ end
136
+
137
+ end