scrapebadger 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +548 -0
- data/Rakefile +10 -0
- data/docs/AccountApi.md +76 -0
- data/docs/AccountInfo.md +28 -0
- data/docs/AmazonApi.md +1244 -0
- data/docs/ApartmentsApi.md +373 -0
- data/docs/BaiduApi.md +447 -0
- data/docs/BillingLogListResponse.md +24 -0
- data/docs/BillingLogResponse.md +32 -0
- data/docs/BingApi.md +610 -0
- data/docs/ChatGPTApi.md +521 -0
- data/docs/DepopApi.md +542 -0
- data/docs/DuckDuckGoApi.md +700 -0
- data/docs/EBayApi.md +1019 -0
- data/docs/FacebookApi.md +1671 -0
- data/docs/FilterRuleCreate.md +28 -0
- data/docs/FilterRuleDeliveryLogListResponse.md +24 -0
- data/docs/FilterRuleDeliveryLogResponse.md +44 -0
- data/docs/FilterRuleListResponse.md +24 -0
- data/docs/FilterRuleResponse.md +40 -0
- data/docs/FilterRuleUpdate.md +30 -0
- data/docs/FilterRuleValidateRequest.md +18 -0
- data/docs/FilterRuleValidateResponse.md +22 -0
- data/docs/GoogleApi.md +3175 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/IdealistaApi.md +822 -0
- data/docs/ImmobiliareApi.md +773 -0
- data/docs/InstagramApi.md +1673 -0
- data/docs/LeboncoinApi.md +884 -0
- data/docs/LinkedInApi.md +925 -0
- data/docs/LoopNetApi.md +529 -0
- data/docs/PortalApiRoutersV1TwitterFilterRulesFilterRulePricingResponse.md +20 -0
- data/docs/RealtorApi.md +474 -0
- data/docs/RedditApi.md +1677 -0
- data/docs/RedfinApi.md +616 -0
- data/docs/StreamMonitorCreate.md +26 -0
- data/docs/StreamMonitorListResponse.md +24 -0
- data/docs/StreamMonitorResponse.md +42 -0
- data/docs/StreamMonitorUpdate.md +28 -0
- data/docs/SubscriptionInfo.md +40 -0
- data/docs/TikTokApi.md +2104 -0
- data/docs/TweetDeliveryLogListResponse.md +24 -0
- data/docs/TweetDeliveryLogResponse.md +44 -0
- data/docs/TwitterApi.md +4091 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/docs/VintedApi.md +766 -0
- data/docs/WalmartApi.md +904 -0
- data/docs/WebApi.md +634 -0
- data/docs/WebhookCreate.md +22 -0
- data/docs/WebhookListItem.md +28 -0
- data/docs/WebhookListResponse.md +20 -0
- data/docs/WebhookResponse.md +26 -0
- data/docs/WebhookTestRequest.md +18 -0
- data/docs/WebhookTestResponse.md +24 -0
- data/docs/YahooApi.md +602 -0
- data/docs/YandexApi.md +450 -0
- data/docs/YouTubeApi.md +2872 -0
- data/docs/ZillowApi.md +622 -0
- data/git_push.sh +57 -0
- data/lib/scrapebadger/api/account_api.rb +79 -0
- data/lib/scrapebadger/api/amazon_api.rb +1165 -0
- data/lib/scrapebadger/api/apartments_api.rb +377 -0
- data/lib/scrapebadger/api/baidu_api.rb +436 -0
- data/lib/scrapebadger/api/bing_api.rb +580 -0
- data/lib/scrapebadger/api/chat_gpt_api.rb +466 -0
- data/lib/scrapebadger/api/depop_api.rb +518 -0
- data/lib/scrapebadger/api/duck_duck_go_api.rb +675 -0
- data/lib/scrapebadger/api/e_bay_api.rb +1029 -0
- data/lib/scrapebadger/api/facebook_api.rb +1492 -0
- data/lib/scrapebadger/api/google_api.rb +3191 -0
- data/lib/scrapebadger/api/idealista_api.rb +864 -0
- data/lib/scrapebadger/api/immobiliare_api.rb +734 -0
- data/lib/scrapebadger/api/instagram_api.rb +1555 -0
- data/lib/scrapebadger/api/leboncoin_api.rb +818 -0
- data/lib/scrapebadger/api/linked_in_api.rb +832 -0
- data/lib/scrapebadger/api/loop_net_api.rb +503 -0
- data/lib/scrapebadger/api/realtor_api.rb +481 -0
- data/lib/scrapebadger/api/reddit_api.rb +1601 -0
- data/lib/scrapebadger/api/redfin_api.rb +625 -0
- data/lib/scrapebadger/api/tik_tok_api.rb +2029 -0
- data/lib/scrapebadger/api/twitter_api.rb +3696 -0
- data/lib/scrapebadger/api/vinted_api.rb +705 -0
- data/lib/scrapebadger/api/walmart_api.rb +876 -0
- data/lib/scrapebadger/api/web_api.rb +547 -0
- data/lib/scrapebadger/api/yahoo_api.rb +560 -0
- data/lib/scrapebadger/api/yandex_api.rb +422 -0
- data/lib/scrapebadger/api/you_tube_api.rb +2520 -0
- data/lib/scrapebadger/api/zillow_api.rb +634 -0
- data/lib/scrapebadger/api_client.rb +394 -0
- data/lib/scrapebadger/api_error.rb +58 -0
- data/lib/scrapebadger/configuration.rb +308 -0
- data/lib/scrapebadger/models/account_info.rb +288 -0
- data/lib/scrapebadger/models/billing_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/billing_log_response.rb +334 -0
- data/lib/scrapebadger/models/filter_rule_create.rb +427 -0
- data/lib/scrapebadger/models/filter_rule_delivery_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/filter_rule_delivery_log_response.rb +422 -0
- data/lib/scrapebadger/models/filter_rule_list_response.rb +272 -0
- data/lib/scrapebadger/models/filter_rule_response.rb +390 -0
- data/lib/scrapebadger/models/filter_rule_update.rb +389 -0
- data/lib/scrapebadger/models/filter_rule_validate_request.rb +250 -0
- data/lib/scrapebadger/models/filter_rule_validate_response.rb +248 -0
- data/lib/scrapebadger/models/http_validation_error.rb +216 -0
- data/lib/scrapebadger/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response.rb +238 -0
- data/lib/scrapebadger/models/stream_monitor_create.rb +373 -0
- data/lib/scrapebadger/models/stream_monitor_list_response.rb +272 -0
- data/lib/scrapebadger/models/stream_monitor_response.rb +406 -0
- data/lib/scrapebadger/models/stream_monitor_update.rb +335 -0
- data/lib/scrapebadger/models/subscription_info.rb +352 -0
- data/lib/scrapebadger/models/tweet_delivery_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/tweet_delivery_log_response.rb +422 -0
- data/lib/scrapebadger/models/validation_error.rb +255 -0
- data/lib/scrapebadger/models/validation_error_loc_inner.rb +104 -0
- data/lib/scrapebadger/models/webhook_create.rb +282 -0
- data/lib/scrapebadger/models/webhook_list_item.rb +302 -0
- data/lib/scrapebadger/models/webhook_list_response.rb +240 -0
- data/lib/scrapebadger/models/webhook_response.rb +286 -0
- data/lib/scrapebadger/models/webhook_test_request.rb +223 -0
- data/lib/scrapebadger/models/webhook_test_response.rb +259 -0
- data/lib/scrapebadger/version.rb +15 -0
- data/lib/scrapebadger.rb +96 -0
- data/scrapebadger.gemspec +39 -0
- data/spec/api/account_api_spec.rb +46 -0
- data/spec/api/amazon_api_spec.rb +258 -0
- data/spec/api/apartments_api_spec.rb +98 -0
- data/spec/api/baidu_api_spec.rb +109 -0
- data/spec/api/bing_api_spec.rb +141 -0
- data/spec/api/chat_gpt_api_spec.rb +123 -0
- data/spec/api/depop_api_spec.rb +132 -0
- data/spec/api/duck_duck_go_api_spec.rb +162 -0
- data/spec/api/e_bay_api_spec.rb +222 -0
- data/spec/api/facebook_api_spec.rb +326 -0
- data/spec/api/google_api_spec.rb +649 -0
- data/spec/api/idealista_api_spec.rb +197 -0
- data/spec/api/immobiliare_api_spec.rb +174 -0
- data/spec/api/instagram_api_spec.rb +309 -0
- data/spec/api/leboncoin_api_spec.rb +184 -0
- data/spec/api/linked_in_api_spec.rb +197 -0
- data/spec/api/loop_net_api_spec.rb +127 -0
- data/spec/api/realtor_api_spec.rb +123 -0
- data/spec/api/reddit_api_spec.rb +331 -0
- data/spec/api/redfin_api_spec.rb +147 -0
- data/spec/api/tik_tok_api_spec.rb +413 -0
- data/spec/api/twitter_api_spec.rb +735 -0
- data/spec/api/vinted_api_spec.rb +169 -0
- data/spec/api/walmart_api_spec.rb +192 -0
- data/spec/api/web_api_spec.rb +136 -0
- data/spec/api/yahoo_api_spec.rb +137 -0
- data/spec/api/yandex_api_spec.rb +111 -0
- data/spec/api/you_tube_api_spec.rb +500 -0
- data/spec/api/zillow_api_spec.rb +150 -0
- data/spec/models/account_info_spec.rb +66 -0
- data/spec/models/billing_log_list_response_spec.rb +54 -0
- data/spec/models/billing_log_response_spec.rb +78 -0
- data/spec/models/filter_rule_create_spec.rb +66 -0
- data/spec/models/filter_rule_delivery_log_list_response_spec.rb +54 -0
- data/spec/models/filter_rule_delivery_log_response_spec.rb +114 -0
- data/spec/models/filter_rule_list_response_spec.rb +54 -0
- data/spec/models/filter_rule_response_spec.rb +102 -0
- data/spec/models/filter_rule_update_spec.rb +72 -0
- data/spec/models/filter_rule_validate_request_spec.rb +36 -0
- data/spec/models/filter_rule_validate_response_spec.rb +48 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response_spec.rb +42 -0
- data/spec/models/stream_monitor_create_spec.rb +60 -0
- data/spec/models/stream_monitor_list_response_spec.rb +54 -0
- data/spec/models/stream_monitor_response_spec.rb +108 -0
- data/spec/models/stream_monitor_update_spec.rb +66 -0
- data/spec/models/subscription_info_spec.rb +102 -0
- data/spec/models/tweet_delivery_log_list_response_spec.rb +54 -0
- data/spec/models/tweet_delivery_log_response_spec.rb +114 -0
- data/spec/models/validation_error_loc_inner_spec.rb +21 -0
- data/spec/models/validation_error_spec.rb +48 -0
- data/spec/models/webhook_create_spec.rb +48 -0
- data/spec/models/webhook_list_item_spec.rb +66 -0
- data/spec/models/webhook_list_response_spec.rb +42 -0
- data/spec/models/webhook_response_spec.rb +60 -0
- data/spec/models/webhook_test_request_spec.rb +36 -0
- data/spec/models/webhook_test_response_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- metadata +324 -0
|
@@ -0,0 +1,331 @@
|
|
|
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::RedditApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'RedditApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = ScrapeBadger::RedditApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of RedditApi' do
|
|
30
|
+
it 'should create an instance of RedditApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(ScrapeBadger::RedditApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for reddit_get_cross_posts
|
|
36
|
+
# Get cross-posts
|
|
37
|
+
# Get cross-posts and duplicates of a Reddit post.
|
|
38
|
+
# @param post_id
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [Integer] :limit
|
|
41
|
+
# @option opts [String] :after
|
|
42
|
+
# @return [Object]
|
|
43
|
+
describe 'reddit_get_cross_posts 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 reddit_get_post_comments
|
|
50
|
+
# Get post comments
|
|
51
|
+
# Get comment tree for a Reddit post.
|
|
52
|
+
# @param post_id
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @option opts [String] :sort Sort: confidence, top, new, controversial, old, qa
|
|
55
|
+
# @option opts [Integer] :limit
|
|
56
|
+
# @option opts [Integer] :depth
|
|
57
|
+
# @return [Object]
|
|
58
|
+
describe 'reddit_get_post_comments test' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# unit tests for reddit_get_post_detail
|
|
65
|
+
# Get post detail
|
|
66
|
+
# Get detailed information about a Reddit post.
|
|
67
|
+
# @param post_id
|
|
68
|
+
# @param [Hash] opts the optional parameters
|
|
69
|
+
# @return [Object]
|
|
70
|
+
describe 'reddit_get_post_detail 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 reddit_get_posts_by_domain
|
|
77
|
+
# Get posts by domain
|
|
78
|
+
# Get Reddit posts linking to a specific domain.
|
|
79
|
+
# @param domain
|
|
80
|
+
# @param [Hash] opts the optional parameters
|
|
81
|
+
# @option opts [String] :sort
|
|
82
|
+
# @option opts [String] :t
|
|
83
|
+
# @option opts [Integer] :limit
|
|
84
|
+
# @option opts [String] :after
|
|
85
|
+
# @return [Object]
|
|
86
|
+
describe 'reddit_get_posts_by_domain 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 reddit_get_subreddit_info
|
|
93
|
+
# Get subreddit info
|
|
94
|
+
# Get detailed information about a subreddit.
|
|
95
|
+
# @param subreddit
|
|
96
|
+
# @param [Hash] opts the optional parameters
|
|
97
|
+
# @return [Object]
|
|
98
|
+
describe 'reddit_get_subreddit_info test' do
|
|
99
|
+
it 'should work' do
|
|
100
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# unit tests for reddit_get_subreddit_posts
|
|
105
|
+
# Get subreddit posts
|
|
106
|
+
# Get posts from a subreddit with sorting options.
|
|
107
|
+
# @param subreddit
|
|
108
|
+
# @param [Hash] opts the optional parameters
|
|
109
|
+
# @option opts [String] :sort Sort: hot, new, top, rising, controversial
|
|
110
|
+
# @option opts [String] :t Time filter
|
|
111
|
+
# @option opts [Integer] :limit
|
|
112
|
+
# @option opts [String] :after
|
|
113
|
+
# @return [Object]
|
|
114
|
+
describe 'reddit_get_subreddit_posts test' do
|
|
115
|
+
it 'should work' do
|
|
116
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# unit tests for reddit_get_subreddit_rules
|
|
121
|
+
# Get subreddit rules
|
|
122
|
+
# Get the rules of a subreddit.
|
|
123
|
+
# @param subreddit
|
|
124
|
+
# @param [Hash] opts the optional parameters
|
|
125
|
+
# @return [Object]
|
|
126
|
+
describe 'reddit_get_subreddit_rules test' do
|
|
127
|
+
it 'should work' do
|
|
128
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# unit tests for reddit_get_trending_posts
|
|
133
|
+
# Get trending posts
|
|
134
|
+
# Get trending posts from Reddit's front page.
|
|
135
|
+
# @param [Hash] opts the optional parameters
|
|
136
|
+
# @option opts [String] :sort Sort: hot, new, top, rising, controversial, best
|
|
137
|
+
# @option opts [String] :t Time filter
|
|
138
|
+
# @option opts [Integer] :limit
|
|
139
|
+
# @option opts [String] :after
|
|
140
|
+
# @return [Object]
|
|
141
|
+
describe 'reddit_get_trending_posts 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 reddit_get_user_profile
|
|
148
|
+
# Get user profile
|
|
149
|
+
# Get a Reddit user's profile.
|
|
150
|
+
# @param username
|
|
151
|
+
# @param [Hash] opts the optional parameters
|
|
152
|
+
# @return [Object]
|
|
153
|
+
describe 'reddit_get_user_profile test' do
|
|
154
|
+
it 'should work' do
|
|
155
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# unit tests for reddit_get_user_s_comments
|
|
160
|
+
# Get user's comments
|
|
161
|
+
# Get comments by a Reddit user.
|
|
162
|
+
# @param username
|
|
163
|
+
# @param [Hash] opts the optional parameters
|
|
164
|
+
# @option opts [String] :sort
|
|
165
|
+
# @option opts [String] :t
|
|
166
|
+
# @option opts [Integer] :limit
|
|
167
|
+
# @option opts [String] :after
|
|
168
|
+
# @return [Object]
|
|
169
|
+
describe 'reddit_get_user_s_comments test' do
|
|
170
|
+
it 'should work' do
|
|
171
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# unit tests for reddit_get_user_s_moderated_subreddits
|
|
176
|
+
# Get user's moderated subreddits
|
|
177
|
+
# Get subreddits moderated by a user.
|
|
178
|
+
# @param username
|
|
179
|
+
# @param [Hash] opts the optional parameters
|
|
180
|
+
# @return [Object]
|
|
181
|
+
describe 'reddit_get_user_s_moderated_subreddits 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 reddit_get_user_s_posts
|
|
188
|
+
# Get user's posts
|
|
189
|
+
# Get posts submitted by a Reddit user.
|
|
190
|
+
# @param username
|
|
191
|
+
# @param [Hash] opts the optional parameters
|
|
192
|
+
# @option opts [String] :sort
|
|
193
|
+
# @option opts [String] :t
|
|
194
|
+
# @option opts [Integer] :limit
|
|
195
|
+
# @option opts [String] :after
|
|
196
|
+
# @return [Object]
|
|
197
|
+
describe 'reddit_get_user_s_posts test' do
|
|
198
|
+
it 'should work' do
|
|
199
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# unit tests for reddit_get_user_s_trophies
|
|
204
|
+
# Get user's trophies
|
|
205
|
+
# Get a user's trophy case.
|
|
206
|
+
# @param username
|
|
207
|
+
# @param [Hash] opts the optional parameters
|
|
208
|
+
# @return [Object]
|
|
209
|
+
describe 'reddit_get_user_s_trophies test' do
|
|
210
|
+
it 'should work' do
|
|
211
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# unit tests for reddit_get_wiki_page_content
|
|
216
|
+
# Get wiki page content
|
|
217
|
+
# Get the content of a specific wiki page.
|
|
218
|
+
# @param subreddit
|
|
219
|
+
# @param page
|
|
220
|
+
# @param [Hash] opts the optional parameters
|
|
221
|
+
# @return [Object]
|
|
222
|
+
describe 'reddit_get_wiki_page_content test' do
|
|
223
|
+
it 'should work' do
|
|
224
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# unit tests for reddit_list_wiki_pages
|
|
229
|
+
# List wiki pages
|
|
230
|
+
# List all wiki pages in a subreddit.
|
|
231
|
+
# @param subreddit
|
|
232
|
+
# @param [Hash] opts the optional parameters
|
|
233
|
+
# @return [Object]
|
|
234
|
+
describe 'reddit_list_wiki_pages test' do
|
|
235
|
+
it 'should work' do
|
|
236
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# unit tests for reddit_new_subreddits
|
|
241
|
+
# New subreddits
|
|
242
|
+
# Get recently created subreddits.
|
|
243
|
+
# @param [Hash] opts the optional parameters
|
|
244
|
+
# @option opts [Integer] :limit
|
|
245
|
+
# @option opts [String] :after
|
|
246
|
+
# @return [Object]
|
|
247
|
+
describe 'reddit_new_subreddits test' do
|
|
248
|
+
it 'should work' do
|
|
249
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# unit tests for reddit_popular_subreddits
|
|
254
|
+
# Popular subreddits
|
|
255
|
+
# Get popular subreddits by subscriber count.
|
|
256
|
+
# @param [Hash] opts the optional parameters
|
|
257
|
+
# @option opts [Integer] :limit
|
|
258
|
+
# @option opts [String] :after
|
|
259
|
+
# @return [Object]
|
|
260
|
+
describe 'reddit_popular_subreddits test' do
|
|
261
|
+
it 'should work' do
|
|
262
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# unit tests for reddit_reddit_scraper_health_check
|
|
267
|
+
# Reddit scraper health check
|
|
268
|
+
# @param [Hash] opts the optional parameters
|
|
269
|
+
# @return [Object]
|
|
270
|
+
describe 'reddit_reddit_scraper_health_check test' do
|
|
271
|
+
it 'should work' do
|
|
272
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# unit tests for reddit_reddit_scraper_health_check_head
|
|
277
|
+
# Reddit scraper health check
|
|
278
|
+
# @param [Hash] opts the optional parameters
|
|
279
|
+
# @return [Object]
|
|
280
|
+
describe 'reddit_reddit_scraper_health_check_head test' do
|
|
281
|
+
it 'should work' do
|
|
282
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
283
|
+
end
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# unit tests for reddit_search_reddit_posts
|
|
287
|
+
# Search Reddit posts
|
|
288
|
+
# Search Reddit posts globally or within a subreddit.
|
|
289
|
+
# @param q Search query
|
|
290
|
+
# @param [Hash] opts the optional parameters
|
|
291
|
+
# @option opts [String] :subreddit Restrict to subreddit
|
|
292
|
+
# @option opts [String] :sort Sort: relevance, hot, top, new, comments
|
|
293
|
+
# @option opts [String] :t Time: hour, day, week, month, year, all
|
|
294
|
+
# @option opts [Integer] :limit
|
|
295
|
+
# @option opts [String] :after
|
|
296
|
+
# @return [Object]
|
|
297
|
+
describe 'reddit_search_reddit_posts test' do
|
|
298
|
+
it 'should work' do
|
|
299
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
300
|
+
end
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
# unit tests for reddit_search_subreddits
|
|
304
|
+
# Search subreddits
|
|
305
|
+
# Search for subreddits by keyword.
|
|
306
|
+
# @param q Search query
|
|
307
|
+
# @param [Hash] opts the optional parameters
|
|
308
|
+
# @option opts [Integer] :limit
|
|
309
|
+
# @option opts [String] :after
|
|
310
|
+
# @return [Object]
|
|
311
|
+
describe 'reddit_search_subreddits test' do
|
|
312
|
+
it 'should work' do
|
|
313
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
# unit tests for reddit_search_users
|
|
318
|
+
# Search users
|
|
319
|
+
# Search for Reddit users.
|
|
320
|
+
# @param q Search query
|
|
321
|
+
# @param [Hash] opts the optional parameters
|
|
322
|
+
# @option opts [Integer] :limit
|
|
323
|
+
# @option opts [String] :after
|
|
324
|
+
# @return [Object]
|
|
325
|
+
describe 'reddit_search_users test' do
|
|
326
|
+
it 'should work' do
|
|
327
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
328
|
+
end
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
end
|
|
@@ -0,0 +1,147 @@
|
|
|
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::RedfinApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'RedfinApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = ScrapeBadger::RedfinApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of RedfinApi' do
|
|
30
|
+
it 'should create an instance of RedfinApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(ScrapeBadger::RedfinApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for redfin_get_agent_profile_listings
|
|
36
|
+
# Get agent profile + listings
|
|
37
|
+
# Get a Redfin real-estate agent's profile and their active listings.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :url Full Redfin /realestateagents/ URL
|
|
40
|
+
# @option opts [String] :agent_id Redfin agent id
|
|
41
|
+
# @return [Object]
|
|
42
|
+
describe 'redfin_get_agent_profile_listings 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 redfin_get_property_detail
|
|
49
|
+
# Get property detail
|
|
50
|
+
# Get a single Redfin property's full detail by its numeric propertyId.
|
|
51
|
+
# @param property_id
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @return [Object]
|
|
54
|
+
describe 'redfin_get_property_detail 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 redfin_get_property_detail_by_url
|
|
61
|
+
# Get property detail by URL
|
|
62
|
+
# Get a single Redfin property's full detail by its home URL.
|
|
63
|
+
# @param url Full Redfin property URL (/CA/City/.../home/12345678)
|
|
64
|
+
# @param [Hash] opts the optional parameters
|
|
65
|
+
# @return [Object]
|
|
66
|
+
describe 'redfin_get_property_detail_by_url 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 redfin_list_coverage_markets
|
|
73
|
+
# List coverage markets
|
|
74
|
+
# List Redfin coverage regions (US).
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @return [Object]
|
|
77
|
+
describe 'redfin_list_coverage_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 redfin_redfin_scraper_health_check
|
|
84
|
+
# Redfin scraper health check
|
|
85
|
+
# Check health of the Redfin scraper service (accepts HEAD for UptimeRobot).
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @return [Object]
|
|
88
|
+
describe 'redfin_redfin_scraper_health_check test' do
|
|
89
|
+
it 'should work' do
|
|
90
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# unit tests for redfin_redfin_scraper_health_check_head
|
|
95
|
+
# Redfin scraper health check
|
|
96
|
+
# Check health of the Redfin scraper service (accepts HEAD for UptimeRobot).
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @return [Object]
|
|
99
|
+
describe 'redfin_redfin_scraper_health_check_head test' do
|
|
100
|
+
it 'should work' do
|
|
101
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# unit tests for redfin_region_address_suggestions
|
|
106
|
+
# Region/address suggestions
|
|
107
|
+
# Resolve a search term to Redfin regions/addresses.
|
|
108
|
+
# @param query Partial location — city, ZIP, address, neighborhood
|
|
109
|
+
# @param [Hash] opts the optional parameters
|
|
110
|
+
# @return [Object]
|
|
111
|
+
describe 'redfin_region_address_suggestions test' do
|
|
112
|
+
it 'should work' do
|
|
113
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# unit tests for redfin_search_properties
|
|
118
|
+
# Search properties
|
|
119
|
+
# Search Redfin for for-sale / for-rent / recently-sold properties.
|
|
120
|
+
# @param location City/state, ZIP, address or neighborhood
|
|
121
|
+
# @param [Hash] opts the optional parameters
|
|
122
|
+
# @option opts [Integer] :page
|
|
123
|
+
# @option opts [String] :sort relevant|newest|price_high_to_low|price_low_to_high|square_feet|lot_size|price_per_sqft|beds|baths
|
|
124
|
+
# @option opts [Integer] :price_min
|
|
125
|
+
# @option opts [Integer] :price_max
|
|
126
|
+
# @option opts [Integer] :beds_min
|
|
127
|
+
# @option opts [Float] :baths_min
|
|
128
|
+
# @option opts [String] :home_type house|condo|townhouse|multi_family|land|mobile|coop|other
|
|
129
|
+
# @option opts [Integer] :sqft_min
|
|
130
|
+
# @option opts [Integer] :sqft_max
|
|
131
|
+
# @option opts [Integer] :lot_min
|
|
132
|
+
# @option opts [Integer] :lot_max
|
|
133
|
+
# @option opts [Integer] :year_built_min
|
|
134
|
+
# @option opts [Integer] :year_built_max
|
|
135
|
+
# @option opts [Integer] :max_days_on_market
|
|
136
|
+
# @option opts [Float] :north Map bounds for tiling past the cap
|
|
137
|
+
# @option opts [Float] :south
|
|
138
|
+
# @option opts [Float] :east
|
|
139
|
+
# @option opts [Float] :west
|
|
140
|
+
# @return [Object]
|
|
141
|
+
describe 'redfin_search_properties 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
|
+
end
|