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,184 @@
|
|
|
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::LeboncoinApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'LeboncoinApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = ScrapeBadger::LeboncoinApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of LeboncoinApi' do
|
|
30
|
+
it 'should create an instance of LeboncoinApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(ScrapeBadger::LeboncoinApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for leboncoin_get_a_seller_s_ads
|
|
36
|
+
# Get a seller's ads
|
|
37
|
+
# A seller's active ads.
|
|
38
|
+
# @param user_id
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [Integer] :page
|
|
41
|
+
# @option opts [Integer] :limit
|
|
42
|
+
# @return [Object]
|
|
43
|
+
describe 'leboncoin_get_a_seller_s_ads 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 leboncoin_get_ad_detail
|
|
50
|
+
# Get ad detail
|
|
51
|
+
# Full detail for a Leboncoin ad.
|
|
52
|
+
# @param list_id
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @return [Object]
|
|
55
|
+
describe 'leboncoin_get_ad_detail 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 leboncoin_get_seller_profile
|
|
62
|
+
# Get seller profile
|
|
63
|
+
# Public seller/pro-store profile.
|
|
64
|
+
# @param user_id
|
|
65
|
+
# @param [Hash] opts the optional parameters
|
|
66
|
+
# @return [Object]
|
|
67
|
+
describe 'leboncoin_get_seller_profile 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 leboncoin_get_similar_ads
|
|
74
|
+
# Get similar ads
|
|
75
|
+
# Ads Leboncoin surfaces as similar to the given ad.
|
|
76
|
+
# @param list_id
|
|
77
|
+
# @param [Hash] opts the optional parameters
|
|
78
|
+
# @option opts [Integer] :limit
|
|
79
|
+
# @return [Object]
|
|
80
|
+
describe 'leboncoin_get_similar_ads 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 leboncoin_leboncoin_scraper_health_check
|
|
87
|
+
# Leboncoin scraper health check
|
|
88
|
+
# Check health of the Leboncoin scraper service (accepts HEAD).
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [Object]
|
|
91
|
+
describe 'leboncoin_leboncoin_scraper_health_check 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 leboncoin_leboncoin_scraper_health_check_head
|
|
98
|
+
# Leboncoin scraper health check
|
|
99
|
+
# Check health of the Leboncoin scraper service (accepts HEAD).
|
|
100
|
+
# @param [Hash] opts the optional parameters
|
|
101
|
+
# @return [Object]
|
|
102
|
+
describe 'leboncoin_leboncoin_scraper_health_check_head test' do
|
|
103
|
+
it 'should work' do
|
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# unit tests for leboncoin_list_categories
|
|
109
|
+
# List categories
|
|
110
|
+
# @param [Hash] opts the optional parameters
|
|
111
|
+
# @return [Object]
|
|
112
|
+
describe 'leboncoin_list_categories 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 leboncoin_list_departments
|
|
119
|
+
# List departments
|
|
120
|
+
# @param [Hash] opts the optional parameters
|
|
121
|
+
# @option opts [String] :region_id
|
|
122
|
+
# @return [Object]
|
|
123
|
+
describe 'leboncoin_list_departments test' do
|
|
124
|
+
it 'should work' do
|
|
125
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# unit tests for leboncoin_list_markets
|
|
130
|
+
# List markets
|
|
131
|
+
# @param [Hash] opts the optional parameters
|
|
132
|
+
# @return [Object]
|
|
133
|
+
describe 'leboncoin_list_markets test' do
|
|
134
|
+
it 'should work' do
|
|
135
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# unit tests for leboncoin_list_regions
|
|
140
|
+
# List regions
|
|
141
|
+
# @param [Hash] opts the optional parameters
|
|
142
|
+
# @return [Object]
|
|
143
|
+
describe 'leboncoin_list_regions test' do
|
|
144
|
+
it 'should work' do
|
|
145
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# unit tests for leboncoin_location_autocomplete
|
|
150
|
+
# Location autocomplete
|
|
151
|
+
# @param q Place name
|
|
152
|
+
# @param [Hash] opts the optional parameters
|
|
153
|
+
# @return [Object]
|
|
154
|
+
describe 'leboncoin_location_autocomplete 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 leboncoin_search_leboncoin_ads
|
|
161
|
+
# Search Leboncoin ads
|
|
162
|
+
# Search Leboncoin classifieds (France; scope by region/department/city).
|
|
163
|
+
# @param [Hash] opts the optional parameters
|
|
164
|
+
# @option opts [String] :text Free-text query
|
|
165
|
+
# @option opts [String] :category Category id (see /categories)
|
|
166
|
+
# @option opts [String] :region_id Region id (see /regions)
|
|
167
|
+
# @option opts [String] :department_id Department id, e.g. 75
|
|
168
|
+
# @option opts [String] :city
|
|
169
|
+
# @option opts [String] :zipcode
|
|
170
|
+
# @option opts [Integer] :price_min
|
|
171
|
+
# @option opts [Integer] :price_max
|
|
172
|
+
# @option opts [String] :owner_type all | pro | private
|
|
173
|
+
# @option opts [String] :ad_type offer | demand
|
|
174
|
+
# @option opts [String] :sort relevance|newest|oldest|price_low|price_high
|
|
175
|
+
# @option opts [Integer] :page
|
|
176
|
+
# @option opts [Integer] :limit
|
|
177
|
+
# @return [Object]
|
|
178
|
+
describe 'leboncoin_search_leboncoin_ads test' do
|
|
179
|
+
it 'should work' do
|
|
180
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
end
|
|
@@ -0,0 +1,197 @@
|
|
|
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::LinkedInApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'LinkedInApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = ScrapeBadger::LinkedInApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of LinkedInApi' do
|
|
30
|
+
it 'should create an instance of LinkedInApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(ScrapeBadger::LinkedInApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for linkedin_get_a_company_s_job_postings
|
|
36
|
+
# Get a company's job postings
|
|
37
|
+
# Public job postings for a company (numeric company id from the company endpoint).
|
|
38
|
+
# @param company_id
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [Integer] :start Pagination offset (0, 25, 50, ...)
|
|
41
|
+
# @option opts [String] :country Residential proxy country
|
|
42
|
+
# @return [Object]
|
|
43
|
+
describe 'linkedin_get_a_company_s_job_postings 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 linkedin_get_a_course
|
|
50
|
+
# Get a course
|
|
51
|
+
# A public LinkedIn Learning course — provider, workload, instructors, rating.
|
|
52
|
+
# @param course_slug
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @option opts [String] :country Residential proxy country
|
|
55
|
+
# @return [Object]
|
|
56
|
+
describe 'linkedin_get_a_course test' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# unit tests for linkedin_get_a_public_article
|
|
63
|
+
# Get a public article
|
|
64
|
+
# A public Pulse article — title, body, author, reactions (JSON-LD).
|
|
65
|
+
# @param article_slug
|
|
66
|
+
# @param [Hash] opts the optional parameters
|
|
67
|
+
# @option opts [String] :country Residential proxy country
|
|
68
|
+
# @return [Object]
|
|
69
|
+
describe 'linkedin_get_a_public_article test' do
|
|
70
|
+
it 'should work' do
|
|
71
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# unit tests for linkedin_get_a_public_post
|
|
76
|
+
# Get a public post
|
|
77
|
+
# A public activity share — text, author, reactions, comments (JSON-LD).
|
|
78
|
+
# @param post_slug
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @option opts [String] :country Residential proxy country
|
|
81
|
+
# @return [Object]
|
|
82
|
+
describe 'linkedin_get_a_public_post 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 linkedin_get_company
|
|
89
|
+
# Get company
|
|
90
|
+
# Public company page — industry, size, HQ, followers, specialties (JSON-LD + SSR).
|
|
91
|
+
# @param universal_name
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @option opts [String] :country Residential proxy country
|
|
94
|
+
# @return [Object]
|
|
95
|
+
describe 'linkedin_get_company test' do
|
|
96
|
+
it 'should work' do
|
|
97
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# unit tests for linkedin_get_job_detail
|
|
102
|
+
# Get job detail
|
|
103
|
+
# Full detail for one job posting (guest API, no login).
|
|
104
|
+
# @param job_id
|
|
105
|
+
# @param [Hash] opts the optional parameters
|
|
106
|
+
# @option opts [String] :country Residential proxy country
|
|
107
|
+
# @return [Object]
|
|
108
|
+
describe 'linkedin_get_job_detail 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 linkedin_get_public_profile
|
|
115
|
+
# Get public profile
|
|
116
|
+
# Public profile by vanity id (the ``/in/{public_id}`` slug) — name, headline, location, about, experience, education (public JSON-LD + SSR subset).
|
|
117
|
+
# @param public_id
|
|
118
|
+
# @param [Hash] opts the optional parameters
|
|
119
|
+
# @option opts [String] :country Residential proxy country
|
|
120
|
+
# @return [Object]
|
|
121
|
+
describe 'linkedin_get_public_profile test' do
|
|
122
|
+
it 'should work' do
|
|
123
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# unit tests for linkedin_get_school
|
|
128
|
+
# Get school
|
|
129
|
+
# Public school page — name, description, website, follower/alumni counts.
|
|
130
|
+
# @param universal_name
|
|
131
|
+
# @param [Hash] opts the optional parameters
|
|
132
|
+
# @option opts [String] :country Residential proxy country
|
|
133
|
+
# @return [Object]
|
|
134
|
+
describe 'linkedin_get_school test' do
|
|
135
|
+
it 'should work' do
|
|
136
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# unit tests for linkedin_linkedin_scraper_health_check
|
|
141
|
+
# LinkedIn scraper health check
|
|
142
|
+
# Check health of the LinkedIn scraper service (accepts HEAD).
|
|
143
|
+
# @param [Hash] opts the optional parameters
|
|
144
|
+
# @return [Object]
|
|
145
|
+
describe 'linkedin_linkedin_scraper_health_check test' do
|
|
146
|
+
it 'should work' do
|
|
147
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# unit tests for linkedin_linkedin_scraper_health_check_head
|
|
152
|
+
# LinkedIn scraper health check
|
|
153
|
+
# Check health of the LinkedIn scraper service (accepts HEAD).
|
|
154
|
+
# @param [Hash] opts the optional parameters
|
|
155
|
+
# @return [Object]
|
|
156
|
+
describe 'linkedin_linkedin_scraper_health_check_head test' do
|
|
157
|
+
it 'should work' do
|
|
158
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# unit tests for linkedin_search_linkedin_jobs
|
|
163
|
+
# Search LinkedIn jobs
|
|
164
|
+
# Search public LinkedIn job postings (guest API, no login).
|
|
165
|
+
# @param [Hash] opts the optional parameters
|
|
166
|
+
# @option opts [String] :keywords Job title / keywords
|
|
167
|
+
# @option opts [String] :location Location text, e.g. 'New York'
|
|
168
|
+
# @option opts [String] :geo_id LinkedIn numeric geo id (overrides location)
|
|
169
|
+
# @option opts [String] :company_id Restrict to a company (numeric id)
|
|
170
|
+
# @option opts [String] :date_posted past_24h | past_week | past_month | any
|
|
171
|
+
# @option opts [String] :experience internship|entry|associate|mid_senior|director|executive (comma-separated)
|
|
172
|
+
# @option opts [String] :job_type full_time|part_time|contract|temporary|internship|volunteer|other
|
|
173
|
+
# @option opts [String] :workplace onsite|remote|hybrid (comma-separated)
|
|
174
|
+
# @option opts [String] :sort relevant | recent
|
|
175
|
+
# @option opts [Integer] :start Pagination offset (0, 25, 50, ...)
|
|
176
|
+
# @option opts [String] :country Residential proxy country
|
|
177
|
+
# @return [Object]
|
|
178
|
+
describe 'linkedin_search_linkedin_jobs test' do
|
|
179
|
+
it 'should work' do
|
|
180
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# unit tests for linkedin_suggest_location_geo_ids
|
|
185
|
+
# Suggest location geo ids
|
|
186
|
+
# Resolve a name to LinkedIn ids (job-search ``geo_id`` / ``company_id`` helper).
|
|
187
|
+
# @param query Location text, e.g. 'London'
|
|
188
|
+
# @param [Hash] opts the optional parameters
|
|
189
|
+
# @option opts [String] :type geo | company
|
|
190
|
+
# @return [Object]
|
|
191
|
+
describe 'linkedin_suggest_location_geo_ids test' do
|
|
192
|
+
it 'should work' do
|
|
193
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
end
|
|
@@ -0,0 +1,127 @@
|
|
|
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::LoopNetApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'LoopNetApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = ScrapeBadger::LoopNetApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of LoopNetApi' do
|
|
30
|
+
it 'should create an instance of LoopNetApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(ScrapeBadger::LoopNetApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for loopnet_get_broker_profile
|
|
36
|
+
# Get broker profile
|
|
37
|
+
# Get a LoopNet broker profile + their listings by slug + id.
|
|
38
|
+
# @param slug
|
|
39
|
+
# @param broker_id
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @option opts [String] :market us|ca|uk|fr|es
|
|
42
|
+
# @return [Object]
|
|
43
|
+
describe 'loopnet_get_broker_profile 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 loopnet_get_listing_detail
|
|
50
|
+
# Get listing detail
|
|
51
|
+
# Get a single LoopNet listing's full detail by its numeric id.
|
|
52
|
+
# @param listing_id
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @option opts [String] :market us|ca|uk|fr|es
|
|
55
|
+
# @return [Object]
|
|
56
|
+
describe 'loopnet_get_listing_detail test' do
|
|
57
|
+
it 'should work' do
|
|
58
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# unit tests for loopnet_list_coverage_markets
|
|
63
|
+
# List coverage markets
|
|
64
|
+
# List LoopNet coverage markets (US, CA, UK, FR, ES).
|
|
65
|
+
# @param [Hash] opts the optional parameters
|
|
66
|
+
# @return [Object]
|
|
67
|
+
describe 'loopnet_list_coverage_markets 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 loopnet_list_property_types
|
|
74
|
+
# List property types
|
|
75
|
+
# List LoopNet property-type facets accepted by /search.
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [Object]
|
|
78
|
+
describe 'loopnet_list_property_types test' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# unit tests for loopnet_loopnet_scraper_health_check
|
|
85
|
+
# LoopNet scraper health check
|
|
86
|
+
# Check health of the LoopNet scraper service (accepts HEAD for UptimeRobot).
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @return [Object]
|
|
89
|
+
describe 'loopnet_loopnet_scraper_health_check test' do
|
|
90
|
+
it 'should work' do
|
|
91
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# unit tests for loopnet_loopnet_scraper_health_check_head
|
|
96
|
+
# LoopNet scraper health check
|
|
97
|
+
# Check health of the LoopNet scraper service (accepts HEAD for UptimeRobot).
|
|
98
|
+
# @param [Hash] opts the optional parameters
|
|
99
|
+
# @return [Object]
|
|
100
|
+
describe 'loopnet_loopnet_scraper_health_check_head 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 loopnet_search_commercial_real_estate
|
|
107
|
+
# Search commercial real estate
|
|
108
|
+
# Search LoopNet for-lease / for-sale / auction listings across all markets.
|
|
109
|
+
# @param location City/state, ZIP, state code, or 'usa'
|
|
110
|
+
# @param [Hash] opts the optional parameters
|
|
111
|
+
# @option opts [String] :market us|ca|uk|fr|es
|
|
112
|
+
# @option opts [String] :listing_type for-lease|for-sale|auctions
|
|
113
|
+
# @option opts [String] :property_type Slug from /property-types
|
|
114
|
+
# @option opts [Integer] :page
|
|
115
|
+
# @option opts [Integer] :min_price
|
|
116
|
+
# @option opts [Integer] :max_price
|
|
117
|
+
# @option opts [String] :price_type unit | sf | acre
|
|
118
|
+
# @option opts [Integer] :min_size
|
|
119
|
+
# @option opts [Integer] :max_size
|
|
120
|
+
# @return [Object]
|
|
121
|
+
describe 'loopnet_search_commercial_real_estate test' do
|
|
122
|
+
it 'should work' do
|
|
123
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
end
|
|
@@ -0,0 +1,123 @@
|
|
|
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::RealtorApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'RealtorApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = ScrapeBadger::RealtorApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of RealtorApi' do
|
|
30
|
+
it 'should create an instance of RealtorApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(ScrapeBadger::RealtorApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for realtor_get_full_property_detail
|
|
36
|
+
# Get full property detail
|
|
37
|
+
# Full listing detail: features, tax & price history, schools, photos, agents.
|
|
38
|
+
# @param property_id
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :market us (realtor.com) | ca (realtor.ca)
|
|
41
|
+
# @return [Object]
|
|
42
|
+
describe 'realtor_get_full_property_detail 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 realtor_list_markets
|
|
49
|
+
# List markets
|
|
50
|
+
# List supported Realtor markets (US = realtor.com, CA = realtor.ca).
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [Object]
|
|
53
|
+
describe 'realtor_list_markets test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for realtor_location_autocomplete
|
|
60
|
+
# Location autocomplete
|
|
61
|
+
# Resolve a location query into candidate places to feed /search.
|
|
62
|
+
# @param query Freetext location (city, ZIP/postal, address…)
|
|
63
|
+
# @param [Hash] opts the optional parameters
|
|
64
|
+
# @option opts [String] :market us (realtor.com) | ca (realtor.ca)
|
|
65
|
+
# @option opts [Integer] :limit
|
|
66
|
+
# @return [Object]
|
|
67
|
+
describe 'realtor_location_autocomplete 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 realtor_realtor_scraper_health_check
|
|
74
|
+
# Realtor scraper health check
|
|
75
|
+
# Check health of the realtor scraper service (accepts HEAD for UptimeRobot).
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [Object]
|
|
78
|
+
describe 'realtor_realtor_scraper_health_check test' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# unit tests for realtor_realtor_scraper_health_check_head
|
|
85
|
+
# Realtor scraper health check
|
|
86
|
+
# Check health of the realtor scraper service (accepts HEAD for UptimeRobot).
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @return [Object]
|
|
89
|
+
describe 'realtor_realtor_scraper_health_check_head test' do
|
|
90
|
+
it 'should work' do
|
|
91
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# unit tests for realtor_search_property_listings
|
|
96
|
+
# Search property listings
|
|
97
|
+
# Search for-sale/for-rent/sold listings with rich filters.
|
|
98
|
+
# @param [Hash] opts the optional parameters
|
|
99
|
+
# @option opts [String] :location 'Austin, TX', a ZIP, 'Toronto, ON'…
|
|
100
|
+
# @option opts [String] :market us (realtor.com) | ca (realtor.ca)
|
|
101
|
+
# @option opts [String] :status for_sale | for_rent | sold | pending
|
|
102
|
+
# @option opts [Float] :price_min
|
|
103
|
+
# @option opts [Float] :price_max
|
|
104
|
+
# @option opts [Integer] :beds_min
|
|
105
|
+
# @option opts [Integer] :baths_min
|
|
106
|
+
# @option opts [Integer] :sqft_min US only
|
|
107
|
+
# @option opts [Integer] :sqft_max US only
|
|
108
|
+
# @option opts [String] :property_type US only, CSV of property types
|
|
109
|
+
# @option opts [String] :sort relevant | newest | price_low | price_high | photo_count
|
|
110
|
+
# @option opts [Integer] :page
|
|
111
|
+
# @option opts [Integer] :limit
|
|
112
|
+
# @option opts [Float] :lat_min CA bbox south
|
|
113
|
+
# @option opts [Float] :lat_max CA bbox north
|
|
114
|
+
# @option opts [Float] :lng_min CA bbox west
|
|
115
|
+
# @option opts [Float] :lng_max CA bbox east
|
|
116
|
+
# @return [Object]
|
|
117
|
+
describe 'realtor_search_property_listings test' do
|
|
118
|
+
it 'should work' do
|
|
119
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
end
|