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,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::ChatGPTApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'ChatGPTApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = ScrapeBadger::ChatGPTApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of ChatGPTApi' do
|
|
30
|
+
it 'should create an instance of ChatGPTApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(ScrapeBadger::ChatGPTApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for chatgpt_ask_chatgpt_a_question
|
|
36
|
+
# Ask ChatGPT a question
|
|
37
|
+
# Send a prompt to ChatGPT and get the answer plus the web sources it cited.
|
|
38
|
+
# @param prompt The prompt to send to ChatGPT (max 4096 characters).
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :country ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'.
|
|
41
|
+
# @option opts [String] :web_search auto (let ChatGPT decide) | force (ask it to browse) | off (answer from memory). `web_search_triggered` in the response always reports what actually happened.
|
|
42
|
+
# @return [Object]
|
|
43
|
+
describe 'chatgpt_ask_chatgpt_a_question 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 chatgpt_ask_chatgpt_a_question_post
|
|
50
|
+
# Ask ChatGPT a question (POST)
|
|
51
|
+
# POST form of `/ask`, for prompts too long for a query string.
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @return [Object]
|
|
54
|
+
describe 'chatgpt_ask_chatgpt_a_question_post 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 chatgpt_chatgpt_scraper_health_check
|
|
61
|
+
# ChatGPT scraper health check
|
|
62
|
+
# Check health of the ChatGPT scraper service (accepts HEAD).
|
|
63
|
+
# @param [Hash] opts the optional parameters
|
|
64
|
+
# @return [Object]
|
|
65
|
+
describe 'chatgpt_chatgpt_scraper_health_check test' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# unit tests for chatgpt_chatgpt_scraper_health_check_head
|
|
72
|
+
# ChatGPT scraper health check
|
|
73
|
+
# Check health of the ChatGPT scraper service (accepts HEAD).
|
|
74
|
+
# @param [Hash] opts the optional parameters
|
|
75
|
+
# @return [Object]
|
|
76
|
+
describe 'chatgpt_chatgpt_scraper_health_check_head test' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# unit tests for chatgpt_list_chatgpt_models
|
|
83
|
+
# List ChatGPT models
|
|
84
|
+
# Models chatgpt.com currently serves to an anonymous visitor.
|
|
85
|
+
# @param [Hash] opts the optional parameters
|
|
86
|
+
# @option opts [String] :country ISO-3166 alpha-2 egress country.
|
|
87
|
+
# @return [Object]
|
|
88
|
+
describe 'chatgpt_list_chatgpt_models 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 chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer
|
|
95
|
+
# Measure a brand's visibility in a ChatGPT answer
|
|
96
|
+
# Ask ChatGPT, then report whether the brand is mentioned, cited and how prominently.
|
|
97
|
+
# @param prompt The prompt to ask ChatGPT.
|
|
98
|
+
# @param brand Brand name to look for in the answer.
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @option opts [String] :domain Brand domain, for citation matching.
|
|
101
|
+
# @option opts [String] :aliases Comma-separated alternative names.
|
|
102
|
+
# @option opts [String] :competitors Comma-separated competitor names.
|
|
103
|
+
# @option opts [String] :country ISO-3166 alpha-2 egress country.
|
|
104
|
+
# @option opts [String] :web_search auto | force | off
|
|
105
|
+
# @return [Object]
|
|
106
|
+
describe 'chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer test' do
|
|
107
|
+
it 'should work' do
|
|
108
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# unit tests for chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_post
|
|
113
|
+
# Measure a brand's visibility in a ChatGPT answer (POST)
|
|
114
|
+
# POST form, for longer prompts and larger competitor sets.
|
|
115
|
+
# @param [Hash] opts the optional parameters
|
|
116
|
+
# @return [Object]
|
|
117
|
+
describe 'chatgpt_measure_a_brand_s_visibility_in_a_chatgpt_answer_post 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
|
|
@@ -0,0 +1,132 @@
|
|
|
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::DepopApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'DepopApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = ScrapeBadger::DepopApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of DepopApi' do
|
|
30
|
+
it 'should create an instance of DepopApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(ScrapeBadger::DepopApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for depop_depop_scraper_health_check
|
|
36
|
+
# Depop scraper health check
|
|
37
|
+
# Check health of the Depop scraper service (accepts HEAD).
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [Object]
|
|
40
|
+
describe 'depop_depop_scraper_health_check test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for depop_depop_scraper_health_check_head
|
|
47
|
+
# Depop scraper health check
|
|
48
|
+
# Check health of the Depop scraper service (accepts HEAD).
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @return [Object]
|
|
51
|
+
describe 'depop_depop_scraper_health_check_head test' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# unit tests for depop_get_a_user_s_products
|
|
58
|
+
# Get a user's products
|
|
59
|
+
# A user's active listings (cursor-paginated).
|
|
60
|
+
# @param username
|
|
61
|
+
# @param [Hash] opts the optional parameters
|
|
62
|
+
# @option opts [String] :market Market code
|
|
63
|
+
# @option opts [Integer] :per_page
|
|
64
|
+
# @option opts [String] :cursor Pagination cursor
|
|
65
|
+
# @return [Object]
|
|
66
|
+
describe 'depop_get_a_user_s_products 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 depop_get_product_detail
|
|
73
|
+
# Get product detail
|
|
74
|
+
# Full detail for a single product (by numeric id or slug).
|
|
75
|
+
# @param product_id
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @option opts [String] :market Market code
|
|
78
|
+
# @return [Object]
|
|
79
|
+
describe 'depop_get_product_detail test' do
|
|
80
|
+
it 'should work' do
|
|
81
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# unit tests for depop_get_shop_user_profile
|
|
86
|
+
# Get shop/user profile
|
|
87
|
+
# Public shop/user profile by username.
|
|
88
|
+
# @param username
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @option opts [String] :market Market code
|
|
91
|
+
# @return [Object]
|
|
92
|
+
describe 'depop_get_shop_user_profile test' do
|
|
93
|
+
it 'should work' do
|
|
94
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# unit tests for depop_list_markets
|
|
99
|
+
# List markets
|
|
100
|
+
# List supported Depop markets (country + currency).
|
|
101
|
+
# @param [Hash] opts the optional parameters
|
|
102
|
+
# @return [Object]
|
|
103
|
+
describe 'depop_list_markets test' do
|
|
104
|
+
it 'should work' do
|
|
105
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# unit tests for depop_search_depop_products
|
|
110
|
+
# Search Depop products
|
|
111
|
+
# Search the Depop catalog with filters (cursor-paginated).
|
|
112
|
+
# @param query Search text, e.g. 'nike vintage'
|
|
113
|
+
# @param [Hash] opts the optional parameters
|
|
114
|
+
# @option opts [String] :market Market code (us, gb, au, it, fr, ...)
|
|
115
|
+
# @option opts [Integer] :per_page Results per page
|
|
116
|
+
# @option opts [String] :cursor Pagination cursor (from previous page)
|
|
117
|
+
# @option opts [Float] :price_min Minimum price
|
|
118
|
+
# @option opts [Float] :price_max Maximum price
|
|
119
|
+
# @option opts [String] :brands Comma-separated brand IDs
|
|
120
|
+
# @option opts [String] :categories Comma-separated category IDs
|
|
121
|
+
# @option opts [String] :sizes Comma-separated size IDs
|
|
122
|
+
# @option opts [String] :conditions Comma-separated condition slugs (brand_new, used_excellent, ...)
|
|
123
|
+
# @option opts [String] :gender male | female
|
|
124
|
+
# @option opts [String] :sort relevance | newlyListed | priceAscending | priceDescending
|
|
125
|
+
# @return [Object]
|
|
126
|
+
describe 'depop_search_depop_products 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
|
+
end
|
|
@@ -0,0 +1,162 @@
|
|
|
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::DuckDuckGoApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'DuckDuckGoApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = ScrapeBadger::DuckDuckGoApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of DuckDuckGoApi' do
|
|
30
|
+
it 'should create an instance of DuckDuckGoApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(ScrapeBadger::DuckDuckGoApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for duckduckgo_duckduckgo_scraper_health_check
|
|
36
|
+
# DuckDuckGo scraper health check
|
|
37
|
+
# Check health of the DuckDuckGo scraper service (accepts HEAD for UptimeRobot).
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [Object]
|
|
40
|
+
describe 'duckduckgo_duckduckgo_scraper_health_check test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for duckduckgo_duckduckgo_scraper_health_check_head
|
|
47
|
+
# DuckDuckGo scraper health check
|
|
48
|
+
# Check health of the DuckDuckGo scraper service (accepts HEAD for UptimeRobot).
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @return [Object]
|
|
51
|
+
describe 'duckduckgo_duckduckgo_scraper_health_check_head test' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# unit tests for duckduckgo_image_search
|
|
58
|
+
# Image search
|
|
59
|
+
# DuckDuckGo image search with size/color/type/layout/license filters.
|
|
60
|
+
# @param query Search query
|
|
61
|
+
# @param [Hash] opts the optional parameters
|
|
62
|
+
# @option opts [String] :region DuckDuckGo region code (kl), e.g. us-en, uk-en, de-de. wt-wt = all regions.
|
|
63
|
+
# @option opts [String] :safesearch on | moderate | off
|
|
64
|
+
# @option opts [Integer] :page 100 results per page
|
|
65
|
+
# @option opts [String] :size Small | Medium | Large | Wallpaper
|
|
66
|
+
# @option opts [String] :color color | Monochrome | Red | Blue | …
|
|
67
|
+
# @option opts [String] :image_type photo | clipart | gif | transparent | line
|
|
68
|
+
# @option opts [String] :layout Square | Tall | Wide
|
|
69
|
+
# @option opts [String] :license Any | Public | Share | ShareCommercially | Modify
|
|
70
|
+
# @return [Object]
|
|
71
|
+
describe 'duckduckgo_image_search test' do
|
|
72
|
+
it 'should work' do
|
|
73
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# unit tests for duckduckgo_instant_answer
|
|
78
|
+
# Instant Answer
|
|
79
|
+
# DuckDuckGo Instant Answer — abstract, definition, direct answer, related topics.
|
|
80
|
+
# @param query Query for the Instant Answer API
|
|
81
|
+
# @param [Hash] opts the optional parameters
|
|
82
|
+
# @return [Object]
|
|
83
|
+
describe 'duckduckgo_instant_answer test' do
|
|
84
|
+
it 'should work' do
|
|
85
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# unit tests for duckduckgo_list_supported_regions
|
|
90
|
+
# List supported regions
|
|
91
|
+
# The full DuckDuckGo region (kl) code list.
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [Object]
|
|
94
|
+
describe 'duckduckgo_list_supported_regions 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 duckduckgo_news_search
|
|
101
|
+
# News search
|
|
102
|
+
# DuckDuckGo news search — headline, source, excerpt, unix + ISO date, image.
|
|
103
|
+
# @param query Search query
|
|
104
|
+
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @option opts [String] :region DuckDuckGo region code (kl), e.g. us-en, uk-en, de-de. wt-wt = all regions.
|
|
106
|
+
# @option opts [String] :safesearch on | moderate | off
|
|
107
|
+
# @option opts [String] :timelimit day | week | month | year
|
|
108
|
+
# @option opts [Integer] :page 30 results per page
|
|
109
|
+
# @return [Object]
|
|
110
|
+
describe 'duckduckgo_news_search test' do
|
|
111
|
+
it 'should work' do
|
|
112
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# unit tests for duckduckgo_search_suggestions
|
|
117
|
+
# Search suggestions
|
|
118
|
+
# DuckDuckGo search-box suggestions.
|
|
119
|
+
# @param query Partial query to complete
|
|
120
|
+
# @param [Hash] opts the optional parameters
|
|
121
|
+
# @option opts [String] :region DuckDuckGo region code (kl), e.g. us-en, uk-en, de-de. wt-wt = all regions.
|
|
122
|
+
# @return [Object]
|
|
123
|
+
describe 'duckduckgo_search_suggestions 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 duckduckgo_video_search
|
|
130
|
+
# Video search
|
|
131
|
+
# DuckDuckGo video search — title, publisher, uploader, duration, views, thumbnails.
|
|
132
|
+
# @param query Search query
|
|
133
|
+
# @param [Hash] opts the optional parameters
|
|
134
|
+
# @option opts [String] :region DuckDuckGo region code (kl), e.g. us-en, uk-en, de-de. wt-wt = all regions.
|
|
135
|
+
# @option opts [String] :safesearch on | moderate | off
|
|
136
|
+
# @option opts [Integer] :page 60 results per page
|
|
137
|
+
# @option opts [String] :duration short | medium | long
|
|
138
|
+
# @option opts [String] :resolution high | standard
|
|
139
|
+
# @return [Object]
|
|
140
|
+
describe 'duckduckgo_video_search test' do
|
|
141
|
+
it 'should work' do
|
|
142
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# unit tests for duckduckgo_web_search
|
|
147
|
+
# Web search
|
|
148
|
+
# DuckDuckGo web SERP — organic results, the zero-click abstract box, ads flagged.
|
|
149
|
+
# @param query Search query
|
|
150
|
+
# @param [Hash] opts the optional parameters
|
|
151
|
+
# @option opts [String] :region DuckDuckGo region code (kl), e.g. us-en, uk-en, de-de. wt-wt = all regions.
|
|
152
|
+
# @option opts [String] :safesearch on | moderate | off
|
|
153
|
+
# @option opts [String] :timelimit day | week | month | year
|
|
154
|
+
# @option opts [Integer] :page
|
|
155
|
+
# @return [Object]
|
|
156
|
+
describe 'duckduckgo_web_search 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
|
+
end
|
|
@@ -0,0 +1,222 @@
|
|
|
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::EBayApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'EBayApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = ScrapeBadger::EBayApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of EBayApi' do
|
|
30
|
+
it 'should create an instance of EBayApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(ScrapeBadger::EBayApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for ebay_browse_a_category
|
|
36
|
+
# Browse a category
|
|
37
|
+
# List active listings within an eBay category.
|
|
38
|
+
# @param category_id
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :domain
|
|
41
|
+
# @option opts [Integer] :page
|
|
42
|
+
# @option opts [Integer] :per_page
|
|
43
|
+
# @option opts [String] :sort_by best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low
|
|
44
|
+
# @option opts [Float] :min_price
|
|
45
|
+
# @option opts [Float] :max_price
|
|
46
|
+
# @return [Object]
|
|
47
|
+
describe 'ebay_browse_a_category test' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# unit tests for ebay_completed_sold_listings
|
|
54
|
+
# Completed / sold listings
|
|
55
|
+
# Search completed/sold listings — eBay's sold-price history.
|
|
56
|
+
# @param query Search keywords
|
|
57
|
+
# @param [Hash] opts the optional parameters
|
|
58
|
+
# @option opts [String] :domain
|
|
59
|
+
# @option opts [String] :category_id
|
|
60
|
+
# @option opts [Integer] :page
|
|
61
|
+
# @option opts [Integer] :per_page
|
|
62
|
+
# @option opts [String] :sort_by best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low
|
|
63
|
+
# @option opts [String] :condition new|open_box|refurbished|used|for_parts
|
|
64
|
+
# @option opts [Float] :min_price
|
|
65
|
+
# @option opts [Float] :max_price
|
|
66
|
+
# @return [Object]
|
|
67
|
+
describe 'ebay_completed_sold_listings 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 ebay_ebay_scraper_health_check
|
|
74
|
+
# eBay scraper health check
|
|
75
|
+
# Check health of the eBay scraper service (accepts HEAD for UptimeRobot).
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [Object]
|
|
78
|
+
describe 'ebay_ebay_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 ebay_ebay_scraper_health_check_head
|
|
85
|
+
# eBay scraper health check
|
|
86
|
+
# Check health of the eBay scraper service (accepts HEAD for UptimeRobot).
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @return [Object]
|
|
89
|
+
describe 'ebay_ebay_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 ebay_get_item_detail
|
|
96
|
+
# Get item detail
|
|
97
|
+
# Get a single eBay listing's full detail.
|
|
98
|
+
# @param item_id
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @option opts [String] :domain
|
|
101
|
+
# @return [Object]
|
|
102
|
+
describe 'ebay_get_item_detail 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 ebay_get_item_reviews
|
|
109
|
+
# Get item reviews
|
|
110
|
+
# Get catalog product reviews shown on an eBay listing.
|
|
111
|
+
# @param item_id
|
|
112
|
+
# @param [Hash] opts the optional parameters
|
|
113
|
+
# @option opts [String] :domain
|
|
114
|
+
# @option opts [Integer] :page
|
|
115
|
+
# @return [Object]
|
|
116
|
+
describe 'ebay_get_item_reviews test' do
|
|
117
|
+
it 'should work' do
|
|
118
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# unit tests for ebay_get_seller_feedback
|
|
123
|
+
# Get seller feedback
|
|
124
|
+
# Get a seller's recent feedback comments.
|
|
125
|
+
# @param username
|
|
126
|
+
# @param [Hash] opts the optional parameters
|
|
127
|
+
# @option opts [String] :domain
|
|
128
|
+
# @option opts [Integer] :page
|
|
129
|
+
# @return [Object]
|
|
130
|
+
describe 'ebay_get_seller_feedback 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
|
+
# unit tests for ebay_get_seller_listings
|
|
137
|
+
# Get seller listings
|
|
138
|
+
# List the active listings of a single eBay seller.
|
|
139
|
+
# @param username
|
|
140
|
+
# @param [Hash] opts the optional parameters
|
|
141
|
+
# @option opts [String] :domain
|
|
142
|
+
# @option opts [String] :query
|
|
143
|
+
# @option opts [Integer] :page
|
|
144
|
+
# @option opts [Integer] :per_page
|
|
145
|
+
# @return [Object]
|
|
146
|
+
describe 'ebay_get_seller_listings test' do
|
|
147
|
+
it 'should work' do
|
|
148
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# unit tests for ebay_get_seller_profile
|
|
153
|
+
# Get seller profile
|
|
154
|
+
# Get an eBay seller's public profile.
|
|
155
|
+
# @param username
|
|
156
|
+
# @param [Hash] opts the optional parameters
|
|
157
|
+
# @option opts [String] :domain
|
|
158
|
+
# @return [Object]
|
|
159
|
+
describe 'ebay_get_seller_profile test' do
|
|
160
|
+
it 'should work' do
|
|
161
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# unit tests for ebay_keyword_suggestions
|
|
166
|
+
# Keyword suggestions
|
|
167
|
+
# Return eBay keyword autocomplete suggestions.
|
|
168
|
+
# @param query Partial query prefix
|
|
169
|
+
# @param [Hash] opts the optional parameters
|
|
170
|
+
# @option opts [String] :domain
|
|
171
|
+
# @return [Object]
|
|
172
|
+
describe 'ebay_keyword_suggestions test' do
|
|
173
|
+
it 'should work' do
|
|
174
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# unit tests for ebay_list_categories
|
|
179
|
+
# List categories
|
|
180
|
+
# List eBay's top-level category ids.
|
|
181
|
+
# @param [Hash] opts the optional parameters
|
|
182
|
+
# @return [Object]
|
|
183
|
+
describe 'ebay_list_categories test' do
|
|
184
|
+
it 'should work' do
|
|
185
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# unit tests for ebay_list_markets
|
|
190
|
+
# List markets
|
|
191
|
+
# List all supported eBay marketplaces.
|
|
192
|
+
# @param [Hash] opts the optional parameters
|
|
193
|
+
# @return [Object]
|
|
194
|
+
describe 'ebay_list_markets test' do
|
|
195
|
+
it 'should work' do
|
|
196
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# unit tests for ebay_search_listings
|
|
201
|
+
# Search listings
|
|
202
|
+
# Search an eBay marketplace for active listings.
|
|
203
|
+
# @param query Search keywords
|
|
204
|
+
# @param [Hash] opts the optional parameters
|
|
205
|
+
# @option opts [String] :domain Marketplace domain (com, co.uk, de …)
|
|
206
|
+
# @option opts [String] :category_id Restrict to a category id
|
|
207
|
+
# @option opts [Integer] :page
|
|
208
|
+
# @option opts [Integer] :per_page 60, 120 or 240
|
|
209
|
+
# @option opts [String] :sort_by best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low
|
|
210
|
+
# @option opts [String] :condition new|open_box|refurbished|used|for_parts
|
|
211
|
+
# @option opts [String] :buying_format auction|buy_it_now|best_offer
|
|
212
|
+
# @option opts [Float] :min_price
|
|
213
|
+
# @option opts [Float] :max_price
|
|
214
|
+
# @option opts [Boolean] :free_shipping
|
|
215
|
+
# @return [Object]
|
|
216
|
+
describe 'ebay_search_listings test' do
|
|
217
|
+
it 'should work' do
|
|
218
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
end
|