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,111 @@
|
|
|
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::YandexApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'YandexApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = ScrapeBadger::YandexApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of YandexApi' do
|
|
30
|
+
it 'should create an instance of YandexApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(ScrapeBadger::YandexApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for yandex_image_search
|
|
36
|
+
# Image search
|
|
37
|
+
# Search Yandex Images by text — thumbnail, full-res URL, dimensions, source page.
|
|
38
|
+
# @param query Image search query, e.g. 'coffee machine'
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :domain Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate.
|
|
41
|
+
# @option opts [Integer] :page
|
|
42
|
+
# @return [Object]
|
|
43
|
+
describe 'yandex_image_search test' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# unit tests for yandex_list_supported_markets
|
|
50
|
+
# List supported markets
|
|
51
|
+
# Supported Yandex markets (domains, default region and language).
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @return [Object]
|
|
54
|
+
describe 'yandex_list_supported_markets test' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# unit tests for yandex_reverse_image_search
|
|
61
|
+
# Reverse image search
|
|
62
|
+
# Reverse image search by URL — hosting pages, similar images, tags, other sizes.
|
|
63
|
+
# @param image_url Public URL of the image to reverse-search
|
|
64
|
+
# @param [Hash] opts the optional parameters
|
|
65
|
+
# @option opts [String] :domain Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate.
|
|
66
|
+
# @return [Object]
|
|
67
|
+
describe 'yandex_reverse_image_search test' do
|
|
68
|
+
it 'should work' do
|
|
69
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# unit tests for yandex_web_search
|
|
74
|
+
# Web search
|
|
75
|
+
# Search Yandex web results — organic results, ads, displayed URLs, snippets.
|
|
76
|
+
# @param query Search query, e.g. 'coffee machine'
|
|
77
|
+
# @param [Hash] opts the optional parameters
|
|
78
|
+
# @option opts [String] :domain Yandex market: 'tr' (yandex.com.tr, DEFAULT — the domain that reliably clears anti-bot), 'com', 'ru', 'by', 'kz', 'uz'. 'com'/'ru' have a lower success rate.
|
|
79
|
+
# @option opts [Integer] :page
|
|
80
|
+
# @option opts [Integer] :lr Yandex region id, e.g. 213=Moscow, 84=USA
|
|
81
|
+
# @option opts [String] :lang UI language: ru, en, tr, be, kk, uk
|
|
82
|
+
# @return [Object]
|
|
83
|
+
describe 'yandex_web_search 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 yandex_yandex_scraper_health_check
|
|
90
|
+
# Yandex scraper health check
|
|
91
|
+
# Check health of the Yandex scraper service (accepts HEAD for UptimeRobot).
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [Object]
|
|
94
|
+
describe 'yandex_yandex_scraper_health_check 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 yandex_yandex_scraper_health_check_head
|
|
101
|
+
# Yandex scraper health check
|
|
102
|
+
# Check health of the Yandex scraper service (accepts HEAD for UptimeRobot).
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @return [Object]
|
|
105
|
+
describe 'yandex_yandex_scraper_health_check_head test' do
|
|
106
|
+
it 'should work' do
|
|
107
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
end
|
|
@@ -0,0 +1,500 @@
|
|
|
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::YouTubeApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'YouTubeApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = ScrapeBadger::YouTubeApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of YouTubeApi' do
|
|
30
|
+
it 'should create an instance of YouTubeApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(ScrapeBadger::YouTubeApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for youtube_batch_video_detail
|
|
36
|
+
# Batch video detail
|
|
37
|
+
# @param request_body
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [Object]
|
|
40
|
+
describe 'youtube_batch_video_detail 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 youtube_channel_about
|
|
47
|
+
# Channel about
|
|
48
|
+
# @param channel_id
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @return [Object]
|
|
51
|
+
describe 'youtube_channel_about 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 youtube_channel_playlists
|
|
58
|
+
# Channel playlists
|
|
59
|
+
# @param channel_id
|
|
60
|
+
# @param [Hash] opts the optional parameters
|
|
61
|
+
# @return [Object]
|
|
62
|
+
describe 'youtube_channel_playlists test' do
|
|
63
|
+
it 'should work' do
|
|
64
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# unit tests for youtube_channel_shorts
|
|
69
|
+
# Channel shorts
|
|
70
|
+
# @param channel_id
|
|
71
|
+
# @param [Hash] opts the optional parameters
|
|
72
|
+
# @return [Object]
|
|
73
|
+
describe 'youtube_channel_shorts test' do
|
|
74
|
+
it 'should work' do
|
|
75
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# unit tests for youtube_channel_streams
|
|
80
|
+
# Channel streams
|
|
81
|
+
# @param channel_id
|
|
82
|
+
# @param [Hash] opts the optional parameters
|
|
83
|
+
# @return [Object]
|
|
84
|
+
describe 'youtube_channel_streams test' do
|
|
85
|
+
it 'should work' do
|
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# unit tests for youtube_channel_videos
|
|
91
|
+
# Channel videos
|
|
92
|
+
# @param channel_id
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [Object]
|
|
95
|
+
describe 'youtube_channel_videos 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 youtube_comment_replies
|
|
102
|
+
# Comment replies
|
|
103
|
+
# @param video_id
|
|
104
|
+
# @param comment_id
|
|
105
|
+
# @param continuation Replies continuation token
|
|
106
|
+
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @return [Object]
|
|
108
|
+
describe 'youtube_comment_replies 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 youtube_community_post_comments
|
|
115
|
+
# Community post comments
|
|
116
|
+
# @param post_id
|
|
117
|
+
# @param [Hash] opts the optional parameters
|
|
118
|
+
# @return [Object]
|
|
119
|
+
describe 'youtube_community_post_comments test' do
|
|
120
|
+
it 'should work' do
|
|
121
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# unit tests for youtube_community_posts
|
|
126
|
+
# Community posts
|
|
127
|
+
# @param channel_id
|
|
128
|
+
# @param [Hash] opts the optional parameters
|
|
129
|
+
# @return [Object]
|
|
130
|
+
describe 'youtube_community_posts 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 youtube_content_regions
|
|
137
|
+
# Content regions
|
|
138
|
+
# @param [Hash] opts the optional parameters
|
|
139
|
+
# @return [Object]
|
|
140
|
+
describe 'youtube_content_regions 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 youtube_get_a_community_post
|
|
147
|
+
# Get a community post
|
|
148
|
+
# @param post_id
|
|
149
|
+
# @param [Hash] opts the optional parameters
|
|
150
|
+
# @return [Object]
|
|
151
|
+
describe 'youtube_get_a_community_post test' do
|
|
152
|
+
it 'should work' do
|
|
153
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# unit tests for youtube_get_a_mix_radio_queue
|
|
158
|
+
# Get a mix / radio queue
|
|
159
|
+
# @param playlist_id
|
|
160
|
+
# @param [Hash] opts the optional parameters
|
|
161
|
+
# @return [Object]
|
|
162
|
+
describe 'youtube_get_a_mix_radio_queue test' do
|
|
163
|
+
it 'should work' do
|
|
164
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# unit tests for youtube_get_a_short
|
|
169
|
+
# Get a Short
|
|
170
|
+
# @param video_id
|
|
171
|
+
# @param [Hash] opts the optional parameters
|
|
172
|
+
# @return [Object]
|
|
173
|
+
describe 'youtube_get_a_short test' do
|
|
174
|
+
it 'should work' do
|
|
175
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# unit tests for youtube_get_channel_detail
|
|
180
|
+
# Get channel detail
|
|
181
|
+
# Channel detail (accepts a UC id, @handle, or custom URL).
|
|
182
|
+
# @param channel_id
|
|
183
|
+
# @param [Hash] opts the optional parameters
|
|
184
|
+
# @option opts [String] :gl
|
|
185
|
+
# @option opts [String] :hl
|
|
186
|
+
# @return [Object]
|
|
187
|
+
describe 'youtube_get_channel_detail test' do
|
|
188
|
+
it 'should work' do
|
|
189
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# unit tests for youtube_get_playlist_detail
|
|
194
|
+
# Get playlist detail
|
|
195
|
+
# @param playlist_id
|
|
196
|
+
# @param [Hash] opts the optional parameters
|
|
197
|
+
# @return [Object]
|
|
198
|
+
describe 'youtube_get_playlist_detail test' do
|
|
199
|
+
it 'should work' do
|
|
200
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# unit tests for youtube_get_video_detail
|
|
205
|
+
# Get video detail
|
|
206
|
+
# Full video detail — merged player + next (likes, comments, chapters, related).
|
|
207
|
+
# @param video_id
|
|
208
|
+
# @param [Hash] opts the optional parameters
|
|
209
|
+
# @option opts [String] :gl
|
|
210
|
+
# @option opts [String] :hl
|
|
211
|
+
# @return [Object]
|
|
212
|
+
describe 'youtube_get_video_detail test' do
|
|
213
|
+
it 'should work' do
|
|
214
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# unit tests for youtube_guest_home_feed
|
|
219
|
+
# Guest home feed
|
|
220
|
+
# @param [Hash] opts the optional parameters
|
|
221
|
+
# @return [Object]
|
|
222
|
+
describe 'youtube_guest_home_feed 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 youtube_keyword_suggestions
|
|
229
|
+
# Keyword suggestions
|
|
230
|
+
# Return YouTube keyword autocomplete suggestions.
|
|
231
|
+
# @param query Partial query prefix
|
|
232
|
+
# @param [Hash] opts the optional parameters
|
|
233
|
+
# @option opts [String] :gl
|
|
234
|
+
# @option opts [String] :hl
|
|
235
|
+
# @return [Object]
|
|
236
|
+
describe 'youtube_keyword_suggestions test' do
|
|
237
|
+
it 'should work' do
|
|
238
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# unit tests for youtube_list_caption_tracks
|
|
243
|
+
# List caption tracks
|
|
244
|
+
# @param video_id
|
|
245
|
+
# @param [Hash] opts the optional parameters
|
|
246
|
+
# @return [Object]
|
|
247
|
+
describe 'youtube_list_caption_tracks 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 youtube_live_chat_messages
|
|
254
|
+
# Live chat messages
|
|
255
|
+
# @param video_id
|
|
256
|
+
# @param [Hash] opts the optional parameters
|
|
257
|
+
# @option opts [String] :continuation
|
|
258
|
+
# @option opts [Boolean] :replay
|
|
259
|
+
# @return [Object]
|
|
260
|
+
describe 'youtube_live_chat_messages 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 youtube_oembed_metadata
|
|
267
|
+
# oEmbed metadata
|
|
268
|
+
# @param url A YouTube URL
|
|
269
|
+
# @param [Hash] opts the optional parameters
|
|
270
|
+
# @return [Object]
|
|
271
|
+
describe 'youtube_oembed_metadata test' do
|
|
272
|
+
it 'should work' do
|
|
273
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# unit tests for youtube_playlist_items_page
|
|
278
|
+
# Playlist items page
|
|
279
|
+
# @param playlist_id
|
|
280
|
+
# @param [Hash] opts the optional parameters
|
|
281
|
+
# @return [Object]
|
|
282
|
+
describe 'youtube_playlist_items_page test' do
|
|
283
|
+
it 'should work' do
|
|
284
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
285
|
+
end
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# unit tests for youtube_related_videos
|
|
289
|
+
# Related videos
|
|
290
|
+
# @param video_id
|
|
291
|
+
# @param [Hash] opts the optional parameters
|
|
292
|
+
# @return [Object]
|
|
293
|
+
describe 'youtube_related_videos test' do
|
|
294
|
+
it 'should work' do
|
|
295
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
# unit tests for youtube_resolve_handle_url_to_id
|
|
300
|
+
# Resolve handle/URL to id
|
|
301
|
+
# @param [Hash] opts the optional parameters
|
|
302
|
+
# @option opts [String] :handle
|
|
303
|
+
# @option opts [String] :url
|
|
304
|
+
# @return [Object]
|
|
305
|
+
describe 'youtube_resolve_handle_url_to_id test' do
|
|
306
|
+
it 'should work' do
|
|
307
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
308
|
+
end
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# unit tests for youtube_search_within_a_channel
|
|
312
|
+
# Search within a channel
|
|
313
|
+
# @param channel_id
|
|
314
|
+
# @param query Search keywords
|
|
315
|
+
# @param [Hash] opts the optional parameters
|
|
316
|
+
# @return [Object]
|
|
317
|
+
describe 'youtube_search_within_a_channel test' do
|
|
318
|
+
it 'should work' do
|
|
319
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
320
|
+
end
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# unit tests for youtube_search_youtube
|
|
324
|
+
# Search YouTube
|
|
325
|
+
# Search videos / channels / playlists with the full filter matrix.
|
|
326
|
+
# @param query Search keywords
|
|
327
|
+
# @param [Hash] opts the optional parameters
|
|
328
|
+
# @option opts [String] :type video|channel|playlist|movie|all
|
|
329
|
+
# @option opts [String] :sort_by relevance|date|views|rating
|
|
330
|
+
# @option opts [String] :upload_date hour|today|week|month|year
|
|
331
|
+
# @option opts [String] :duration short|medium|long
|
|
332
|
+
# @option opts [String] :features hd,4k,360,vr180,3d,hdr,cc,subtitles,live
|
|
333
|
+
# @option opts [String] :gl Content region (US, GB, DE…)
|
|
334
|
+
# @option opts [String] :hl UI language
|
|
335
|
+
# @option opts [String] :continuation
|
|
336
|
+
# @return [Object]
|
|
337
|
+
describe 'youtube_search_youtube test' do
|
|
338
|
+
it 'should work' do
|
|
339
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# unit tests for youtube_search_youtube_music
|
|
344
|
+
# Search YouTube Music
|
|
345
|
+
# @param query Search keywords
|
|
346
|
+
# @param [Hash] opts the optional parameters
|
|
347
|
+
# @return [Object]
|
|
348
|
+
describe 'youtube_search_youtube_music test' do
|
|
349
|
+
it 'should work' do
|
|
350
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
351
|
+
end
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# unit tests for youtube_shorts_by_sound
|
|
355
|
+
# Shorts by sound
|
|
356
|
+
# @param sound_id
|
|
357
|
+
# @param [Hash] opts the optional parameters
|
|
358
|
+
# @return [Object]
|
|
359
|
+
describe 'youtube_shorts_by_sound test' do
|
|
360
|
+
it 'should work' do
|
|
361
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
362
|
+
end
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
# unit tests for youtube_stream_formats
|
|
366
|
+
# Stream formats
|
|
367
|
+
# Stream/format metadata (best-effort; media URLs may be PO-token gated).
|
|
368
|
+
# @param video_id
|
|
369
|
+
# @param [Hash] opts the optional parameters
|
|
370
|
+
# @option opts [String] :client IOS|ANDROID|WEB
|
|
371
|
+
# @return [Object]
|
|
372
|
+
describe 'youtube_stream_formats test' do
|
|
373
|
+
it 'should work' do
|
|
374
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
375
|
+
end
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# unit tests for youtube_subscriber_count_fast
|
|
379
|
+
# Subscriber count (fast)
|
|
380
|
+
# @param channel_id
|
|
381
|
+
# @param [Hash] opts the optional parameters
|
|
382
|
+
# @return [Object]
|
|
383
|
+
describe 'youtube_subscriber_count_fast test' do
|
|
384
|
+
it 'should work' do
|
|
385
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
386
|
+
end
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# unit tests for youtube_supported_markets
|
|
390
|
+
# Supported markets
|
|
391
|
+
# @param [Hash] opts the optional parameters
|
|
392
|
+
# @return [Object]
|
|
393
|
+
describe 'youtube_supported_markets test' do
|
|
394
|
+
it 'should work' do
|
|
395
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
396
|
+
end
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# unit tests for youtube_trending_shorts
|
|
400
|
+
# Trending shorts
|
|
401
|
+
# @param [Hash] opts the optional parameters
|
|
402
|
+
# @return [Object]
|
|
403
|
+
describe 'youtube_trending_shorts test' do
|
|
404
|
+
it 'should work' do
|
|
405
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
406
|
+
end
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# unit tests for youtube_trending_videos
|
|
410
|
+
# Trending videos
|
|
411
|
+
# @param [Hash] opts the optional parameters
|
|
412
|
+
# @option opts [String] :gl
|
|
413
|
+
# @option opts [String] :type now|music|gaming|movies
|
|
414
|
+
# @return [Object]
|
|
415
|
+
describe 'youtube_trending_videos test' do
|
|
416
|
+
it 'should work' do
|
|
417
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
418
|
+
end
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# unit tests for youtube_ui_languages
|
|
422
|
+
# UI languages
|
|
423
|
+
# @param [Hash] opts the optional parameters
|
|
424
|
+
# @return [Object]
|
|
425
|
+
describe 'youtube_ui_languages test' do
|
|
426
|
+
it 'should work' do
|
|
427
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
428
|
+
end
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
# unit tests for youtube_video_categories
|
|
432
|
+
# Video categories
|
|
433
|
+
# @param [Hash] opts the optional parameters
|
|
434
|
+
# @option opts [String] :gl
|
|
435
|
+
# @return [Object]
|
|
436
|
+
describe 'youtube_video_categories test' do
|
|
437
|
+
it 'should work' do
|
|
438
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
439
|
+
end
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
# unit tests for youtube_video_comments
|
|
443
|
+
# Video comments
|
|
444
|
+
# @param video_id
|
|
445
|
+
# @param [Hash] opts the optional parameters
|
|
446
|
+
# @option opts [String] :sort_by top|newest
|
|
447
|
+
# @option opts [String] :continuation
|
|
448
|
+
# @return [Object]
|
|
449
|
+
describe 'youtube_video_comments test' do
|
|
450
|
+
it 'should work' do
|
|
451
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
452
|
+
end
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
# unit tests for youtube_video_transcript
|
|
456
|
+
# Video transcript
|
|
457
|
+
# @param video_id
|
|
458
|
+
# @param [Hash] opts the optional parameters
|
|
459
|
+
# @option opts [String] :language BCP-47 language code
|
|
460
|
+
# @return [Object]
|
|
461
|
+
describe 'youtube_video_transcript test' do
|
|
462
|
+
it 'should work' do
|
|
463
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
464
|
+
end
|
|
465
|
+
end
|
|
466
|
+
|
|
467
|
+
# unit tests for youtube_videos_under_a_hashtag
|
|
468
|
+
# Videos under a hashtag
|
|
469
|
+
# @param tag
|
|
470
|
+
# @param [Hash] opts the optional parameters
|
|
471
|
+
# @return [Object]
|
|
472
|
+
describe 'youtube_videos_under_a_hashtag test' do
|
|
473
|
+
it 'should work' do
|
|
474
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
475
|
+
end
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# unit tests for youtube_youtube_scraper_health_check
|
|
479
|
+
# YouTube scraper health check
|
|
480
|
+
# Check health of the YouTube scraper service (accepts HEAD for UptimeRobot).
|
|
481
|
+
# @param [Hash] opts the optional parameters
|
|
482
|
+
# @return [Object]
|
|
483
|
+
describe 'youtube_youtube_scraper_health_check test' do
|
|
484
|
+
it 'should work' do
|
|
485
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
486
|
+
end
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
# unit tests for youtube_youtube_scraper_health_check_head
|
|
490
|
+
# YouTube scraper health check
|
|
491
|
+
# Check health of the YouTube scraper service (accepts HEAD for UptimeRobot).
|
|
492
|
+
# @param [Hash] opts the optional parameters
|
|
493
|
+
# @return [Object]
|
|
494
|
+
describe 'youtube_youtube_scraper_health_check_head test' do
|
|
495
|
+
it 'should work' do
|
|
496
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
497
|
+
end
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
end
|