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
data/docs/LinkedInApi.md
ADDED
|
@@ -0,0 +1,925 @@
|
|
|
1
|
+
# ScrapeBadger::LinkedInApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://scrapebadger.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**linkedin_get_a_company_s_job_postings**](LinkedInApi.md#linkedin_get_a_company_s_job_postings) | **GET** /v1/linkedin/companies/{company_id}/jobs | Get a company's job postings |
|
|
8
|
+
| [**linkedin_get_a_course**](LinkedInApi.md#linkedin_get_a_course) | **GET** /v1/linkedin/learning/{course_slug} | Get a course |
|
|
9
|
+
| [**linkedin_get_a_public_article**](LinkedInApi.md#linkedin_get_a_public_article) | **GET** /v1/linkedin/articles/{article_slug} | Get a public article |
|
|
10
|
+
| [**linkedin_get_a_public_post**](LinkedInApi.md#linkedin_get_a_public_post) | **GET** /v1/linkedin/posts/{post_slug} | Get a public post |
|
|
11
|
+
| [**linkedin_get_company**](LinkedInApi.md#linkedin_get_company) | **GET** /v1/linkedin/companies/{universal_name} | Get company |
|
|
12
|
+
| [**linkedin_get_job_detail**](LinkedInApi.md#linkedin_get_job_detail) | **GET** /v1/linkedin/jobs/{job_id} | Get job detail |
|
|
13
|
+
| [**linkedin_get_public_profile**](LinkedInApi.md#linkedin_get_public_profile) | **GET** /v1/linkedin/profiles/{public_id} | Get public profile |
|
|
14
|
+
| [**linkedin_get_school**](LinkedInApi.md#linkedin_get_school) | **GET** /v1/linkedin/schools/{universal_name} | Get school |
|
|
15
|
+
| [**linkedin_linkedin_scraper_health_check**](LinkedInApi.md#linkedin_linkedin_scraper_health_check) | **GET** /v1/linkedin/health | LinkedIn scraper health check |
|
|
16
|
+
| [**linkedin_linkedin_scraper_health_check_head**](LinkedInApi.md#linkedin_linkedin_scraper_health_check_head) | **HEAD** /v1/linkedin/health | LinkedIn scraper health check |
|
|
17
|
+
| [**linkedin_search_linkedin_jobs**](LinkedInApi.md#linkedin_search_linkedin_jobs) | **GET** /v1/linkedin/jobs/search | Search LinkedIn jobs |
|
|
18
|
+
| [**linkedin_suggest_location_geo_ids**](LinkedInApi.md#linkedin_suggest_location_geo_ids) | **GET** /v1/linkedin/geo/suggest | Suggest location geo ids |
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## linkedin_get_a_company_s_job_postings
|
|
22
|
+
|
|
23
|
+
> Object linkedin_get_a_company_s_job_postings(company_id, opts)
|
|
24
|
+
|
|
25
|
+
Get a company's job postings
|
|
26
|
+
|
|
27
|
+
Public job postings for a company (numeric company id from the company endpoint).
|
|
28
|
+
|
|
29
|
+
### Examples
|
|
30
|
+
|
|
31
|
+
```ruby
|
|
32
|
+
require 'time'
|
|
33
|
+
require 'scrapebadger'
|
|
34
|
+
# setup authorization
|
|
35
|
+
ScrapeBadger.configure do |config|
|
|
36
|
+
# Configure API key authorization: ApiKeyAuth
|
|
37
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
38
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
39
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
api_instance = ScrapeBadger::LinkedInApi.new
|
|
43
|
+
company_id = 'company_id_example' # String |
|
|
44
|
+
opts = {
|
|
45
|
+
start: 56, # Integer | Pagination offset (0, 25, 50, ...)
|
|
46
|
+
country: 'country_example' # String | Residential proxy country
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
begin
|
|
50
|
+
# Get a company's job postings
|
|
51
|
+
result = api_instance.linkedin_get_a_company_s_job_postings(company_id, opts)
|
|
52
|
+
p result
|
|
53
|
+
rescue ScrapeBadger::ApiError => e
|
|
54
|
+
puts "Error when calling LinkedInApi->linkedin_get_a_company_s_job_postings: #{e}"
|
|
55
|
+
end
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
#### Using the linkedin_get_a_company_s_job_postings_with_http_info variant
|
|
59
|
+
|
|
60
|
+
This returns an Array which contains the response data, status code and headers.
|
|
61
|
+
|
|
62
|
+
> <Array(Object, Integer, Hash)> linkedin_get_a_company_s_job_postings_with_http_info(company_id, opts)
|
|
63
|
+
|
|
64
|
+
```ruby
|
|
65
|
+
begin
|
|
66
|
+
# Get a company's job postings
|
|
67
|
+
data, status_code, headers = api_instance.linkedin_get_a_company_s_job_postings_with_http_info(company_id, opts)
|
|
68
|
+
p status_code # => 2xx
|
|
69
|
+
p headers # => { ... }
|
|
70
|
+
p data # => Object
|
|
71
|
+
rescue ScrapeBadger::ApiError => e
|
|
72
|
+
puts "Error when calling LinkedInApi->linkedin_get_a_company_s_job_postings_with_http_info: #{e}"
|
|
73
|
+
end
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Parameters
|
|
77
|
+
|
|
78
|
+
| Name | Type | Description | Notes |
|
|
79
|
+
| ---- | ---- | ----------- | ----- |
|
|
80
|
+
| **company_id** | **String** | | |
|
|
81
|
+
| **start** | **Integer** | Pagination offset (0, 25, 50, ...) | [optional][default to 0] |
|
|
82
|
+
| **country** | **String** | Residential proxy country | [optional][default to 'us'] |
|
|
83
|
+
|
|
84
|
+
### Return type
|
|
85
|
+
|
|
86
|
+
**Object**
|
|
87
|
+
|
|
88
|
+
### Authorization
|
|
89
|
+
|
|
90
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
91
|
+
|
|
92
|
+
### HTTP request headers
|
|
93
|
+
|
|
94
|
+
- **Content-Type**: Not defined
|
|
95
|
+
- **Accept**: application/json
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## linkedin_get_a_course
|
|
99
|
+
|
|
100
|
+
> Object linkedin_get_a_course(course_slug, opts)
|
|
101
|
+
|
|
102
|
+
Get a course
|
|
103
|
+
|
|
104
|
+
A public LinkedIn Learning course — provider, workload, instructors, rating.
|
|
105
|
+
|
|
106
|
+
### Examples
|
|
107
|
+
|
|
108
|
+
```ruby
|
|
109
|
+
require 'time'
|
|
110
|
+
require 'scrapebadger'
|
|
111
|
+
# setup authorization
|
|
112
|
+
ScrapeBadger.configure do |config|
|
|
113
|
+
# Configure API key authorization: ApiKeyAuth
|
|
114
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
115
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
116
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
api_instance = ScrapeBadger::LinkedInApi.new
|
|
120
|
+
course_slug = 'course_slug_example' # String |
|
|
121
|
+
opts = {
|
|
122
|
+
country: 'country_example' # String | Residential proxy country
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
begin
|
|
126
|
+
# Get a course
|
|
127
|
+
result = api_instance.linkedin_get_a_course(course_slug, opts)
|
|
128
|
+
p result
|
|
129
|
+
rescue ScrapeBadger::ApiError => e
|
|
130
|
+
puts "Error when calling LinkedInApi->linkedin_get_a_course: #{e}"
|
|
131
|
+
end
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
#### Using the linkedin_get_a_course_with_http_info variant
|
|
135
|
+
|
|
136
|
+
This returns an Array which contains the response data, status code and headers.
|
|
137
|
+
|
|
138
|
+
> <Array(Object, Integer, Hash)> linkedin_get_a_course_with_http_info(course_slug, opts)
|
|
139
|
+
|
|
140
|
+
```ruby
|
|
141
|
+
begin
|
|
142
|
+
# Get a course
|
|
143
|
+
data, status_code, headers = api_instance.linkedin_get_a_course_with_http_info(course_slug, opts)
|
|
144
|
+
p status_code # => 2xx
|
|
145
|
+
p headers # => { ... }
|
|
146
|
+
p data # => Object
|
|
147
|
+
rescue ScrapeBadger::ApiError => e
|
|
148
|
+
puts "Error when calling LinkedInApi->linkedin_get_a_course_with_http_info: #{e}"
|
|
149
|
+
end
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Parameters
|
|
153
|
+
|
|
154
|
+
| Name | Type | Description | Notes |
|
|
155
|
+
| ---- | ---- | ----------- | ----- |
|
|
156
|
+
| **course_slug** | **String** | | |
|
|
157
|
+
| **country** | **String** | Residential proxy country | [optional][default to 'us'] |
|
|
158
|
+
|
|
159
|
+
### Return type
|
|
160
|
+
|
|
161
|
+
**Object**
|
|
162
|
+
|
|
163
|
+
### Authorization
|
|
164
|
+
|
|
165
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
166
|
+
|
|
167
|
+
### HTTP request headers
|
|
168
|
+
|
|
169
|
+
- **Content-Type**: Not defined
|
|
170
|
+
- **Accept**: application/json
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
## linkedin_get_a_public_article
|
|
174
|
+
|
|
175
|
+
> Object linkedin_get_a_public_article(article_slug, opts)
|
|
176
|
+
|
|
177
|
+
Get a public article
|
|
178
|
+
|
|
179
|
+
A public Pulse article — title, body, author, reactions (JSON-LD).
|
|
180
|
+
|
|
181
|
+
### Examples
|
|
182
|
+
|
|
183
|
+
```ruby
|
|
184
|
+
require 'time'
|
|
185
|
+
require 'scrapebadger'
|
|
186
|
+
# setup authorization
|
|
187
|
+
ScrapeBadger.configure do |config|
|
|
188
|
+
# Configure API key authorization: ApiKeyAuth
|
|
189
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
190
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
191
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
api_instance = ScrapeBadger::LinkedInApi.new
|
|
195
|
+
article_slug = 'article_slug_example' # String |
|
|
196
|
+
opts = {
|
|
197
|
+
country: 'country_example' # String | Residential proxy country
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
begin
|
|
201
|
+
# Get a public article
|
|
202
|
+
result = api_instance.linkedin_get_a_public_article(article_slug, opts)
|
|
203
|
+
p result
|
|
204
|
+
rescue ScrapeBadger::ApiError => e
|
|
205
|
+
puts "Error when calling LinkedInApi->linkedin_get_a_public_article: #{e}"
|
|
206
|
+
end
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
#### Using the linkedin_get_a_public_article_with_http_info variant
|
|
210
|
+
|
|
211
|
+
This returns an Array which contains the response data, status code and headers.
|
|
212
|
+
|
|
213
|
+
> <Array(Object, Integer, Hash)> linkedin_get_a_public_article_with_http_info(article_slug, opts)
|
|
214
|
+
|
|
215
|
+
```ruby
|
|
216
|
+
begin
|
|
217
|
+
# Get a public article
|
|
218
|
+
data, status_code, headers = api_instance.linkedin_get_a_public_article_with_http_info(article_slug, opts)
|
|
219
|
+
p status_code # => 2xx
|
|
220
|
+
p headers # => { ... }
|
|
221
|
+
p data # => Object
|
|
222
|
+
rescue ScrapeBadger::ApiError => e
|
|
223
|
+
puts "Error when calling LinkedInApi->linkedin_get_a_public_article_with_http_info: #{e}"
|
|
224
|
+
end
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### Parameters
|
|
228
|
+
|
|
229
|
+
| Name | Type | Description | Notes |
|
|
230
|
+
| ---- | ---- | ----------- | ----- |
|
|
231
|
+
| **article_slug** | **String** | | |
|
|
232
|
+
| **country** | **String** | Residential proxy country | [optional][default to 'us'] |
|
|
233
|
+
|
|
234
|
+
### Return type
|
|
235
|
+
|
|
236
|
+
**Object**
|
|
237
|
+
|
|
238
|
+
### Authorization
|
|
239
|
+
|
|
240
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
241
|
+
|
|
242
|
+
### HTTP request headers
|
|
243
|
+
|
|
244
|
+
- **Content-Type**: Not defined
|
|
245
|
+
- **Accept**: application/json
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
## linkedin_get_a_public_post
|
|
249
|
+
|
|
250
|
+
> Object linkedin_get_a_public_post(post_slug, opts)
|
|
251
|
+
|
|
252
|
+
Get a public post
|
|
253
|
+
|
|
254
|
+
A public activity share — text, author, reactions, comments (JSON-LD).
|
|
255
|
+
|
|
256
|
+
### Examples
|
|
257
|
+
|
|
258
|
+
```ruby
|
|
259
|
+
require 'time'
|
|
260
|
+
require 'scrapebadger'
|
|
261
|
+
# setup authorization
|
|
262
|
+
ScrapeBadger.configure do |config|
|
|
263
|
+
# Configure API key authorization: ApiKeyAuth
|
|
264
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
265
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
266
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
api_instance = ScrapeBadger::LinkedInApi.new
|
|
270
|
+
post_slug = 'post_slug_example' # String |
|
|
271
|
+
opts = {
|
|
272
|
+
country: 'country_example' # String | Residential proxy country
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
begin
|
|
276
|
+
# Get a public post
|
|
277
|
+
result = api_instance.linkedin_get_a_public_post(post_slug, opts)
|
|
278
|
+
p result
|
|
279
|
+
rescue ScrapeBadger::ApiError => e
|
|
280
|
+
puts "Error when calling LinkedInApi->linkedin_get_a_public_post: #{e}"
|
|
281
|
+
end
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
#### Using the linkedin_get_a_public_post_with_http_info variant
|
|
285
|
+
|
|
286
|
+
This returns an Array which contains the response data, status code and headers.
|
|
287
|
+
|
|
288
|
+
> <Array(Object, Integer, Hash)> linkedin_get_a_public_post_with_http_info(post_slug, opts)
|
|
289
|
+
|
|
290
|
+
```ruby
|
|
291
|
+
begin
|
|
292
|
+
# Get a public post
|
|
293
|
+
data, status_code, headers = api_instance.linkedin_get_a_public_post_with_http_info(post_slug, opts)
|
|
294
|
+
p status_code # => 2xx
|
|
295
|
+
p headers # => { ... }
|
|
296
|
+
p data # => Object
|
|
297
|
+
rescue ScrapeBadger::ApiError => e
|
|
298
|
+
puts "Error when calling LinkedInApi->linkedin_get_a_public_post_with_http_info: #{e}"
|
|
299
|
+
end
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Parameters
|
|
303
|
+
|
|
304
|
+
| Name | Type | Description | Notes |
|
|
305
|
+
| ---- | ---- | ----------- | ----- |
|
|
306
|
+
| **post_slug** | **String** | | |
|
|
307
|
+
| **country** | **String** | Residential proxy country | [optional][default to 'us'] |
|
|
308
|
+
|
|
309
|
+
### Return type
|
|
310
|
+
|
|
311
|
+
**Object**
|
|
312
|
+
|
|
313
|
+
### Authorization
|
|
314
|
+
|
|
315
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
316
|
+
|
|
317
|
+
### HTTP request headers
|
|
318
|
+
|
|
319
|
+
- **Content-Type**: Not defined
|
|
320
|
+
- **Accept**: application/json
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
## linkedin_get_company
|
|
324
|
+
|
|
325
|
+
> Object linkedin_get_company(universal_name, opts)
|
|
326
|
+
|
|
327
|
+
Get company
|
|
328
|
+
|
|
329
|
+
Public company page — industry, size, HQ, followers, specialties (JSON-LD + SSR).
|
|
330
|
+
|
|
331
|
+
### Examples
|
|
332
|
+
|
|
333
|
+
```ruby
|
|
334
|
+
require 'time'
|
|
335
|
+
require 'scrapebadger'
|
|
336
|
+
# setup authorization
|
|
337
|
+
ScrapeBadger.configure do |config|
|
|
338
|
+
# Configure API key authorization: ApiKeyAuth
|
|
339
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
340
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
341
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
api_instance = ScrapeBadger::LinkedInApi.new
|
|
345
|
+
universal_name = 'universal_name_example' # String |
|
|
346
|
+
opts = {
|
|
347
|
+
country: 'country_example' # String | Residential proxy country
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
begin
|
|
351
|
+
# Get company
|
|
352
|
+
result = api_instance.linkedin_get_company(universal_name, opts)
|
|
353
|
+
p result
|
|
354
|
+
rescue ScrapeBadger::ApiError => e
|
|
355
|
+
puts "Error when calling LinkedInApi->linkedin_get_company: #{e}"
|
|
356
|
+
end
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
#### Using the linkedin_get_company_with_http_info variant
|
|
360
|
+
|
|
361
|
+
This returns an Array which contains the response data, status code and headers.
|
|
362
|
+
|
|
363
|
+
> <Array(Object, Integer, Hash)> linkedin_get_company_with_http_info(universal_name, opts)
|
|
364
|
+
|
|
365
|
+
```ruby
|
|
366
|
+
begin
|
|
367
|
+
# Get company
|
|
368
|
+
data, status_code, headers = api_instance.linkedin_get_company_with_http_info(universal_name, opts)
|
|
369
|
+
p status_code # => 2xx
|
|
370
|
+
p headers # => { ... }
|
|
371
|
+
p data # => Object
|
|
372
|
+
rescue ScrapeBadger::ApiError => e
|
|
373
|
+
puts "Error when calling LinkedInApi->linkedin_get_company_with_http_info: #{e}"
|
|
374
|
+
end
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### Parameters
|
|
378
|
+
|
|
379
|
+
| Name | Type | Description | Notes |
|
|
380
|
+
| ---- | ---- | ----------- | ----- |
|
|
381
|
+
| **universal_name** | **String** | | |
|
|
382
|
+
| **country** | **String** | Residential proxy country | [optional][default to 'us'] |
|
|
383
|
+
|
|
384
|
+
### Return type
|
|
385
|
+
|
|
386
|
+
**Object**
|
|
387
|
+
|
|
388
|
+
### Authorization
|
|
389
|
+
|
|
390
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
391
|
+
|
|
392
|
+
### HTTP request headers
|
|
393
|
+
|
|
394
|
+
- **Content-Type**: Not defined
|
|
395
|
+
- **Accept**: application/json
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
## linkedin_get_job_detail
|
|
399
|
+
|
|
400
|
+
> Object linkedin_get_job_detail(job_id, opts)
|
|
401
|
+
|
|
402
|
+
Get job detail
|
|
403
|
+
|
|
404
|
+
Full detail for one job posting (guest API, no login).
|
|
405
|
+
|
|
406
|
+
### Examples
|
|
407
|
+
|
|
408
|
+
```ruby
|
|
409
|
+
require 'time'
|
|
410
|
+
require 'scrapebadger'
|
|
411
|
+
# setup authorization
|
|
412
|
+
ScrapeBadger.configure do |config|
|
|
413
|
+
# Configure API key authorization: ApiKeyAuth
|
|
414
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
415
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
416
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
api_instance = ScrapeBadger::LinkedInApi.new
|
|
420
|
+
job_id = 'job_id_example' # String |
|
|
421
|
+
opts = {
|
|
422
|
+
country: 'country_example' # String | Residential proxy country
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
begin
|
|
426
|
+
# Get job detail
|
|
427
|
+
result = api_instance.linkedin_get_job_detail(job_id, opts)
|
|
428
|
+
p result
|
|
429
|
+
rescue ScrapeBadger::ApiError => e
|
|
430
|
+
puts "Error when calling LinkedInApi->linkedin_get_job_detail: #{e}"
|
|
431
|
+
end
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
#### Using the linkedin_get_job_detail_with_http_info variant
|
|
435
|
+
|
|
436
|
+
This returns an Array which contains the response data, status code and headers.
|
|
437
|
+
|
|
438
|
+
> <Array(Object, Integer, Hash)> linkedin_get_job_detail_with_http_info(job_id, opts)
|
|
439
|
+
|
|
440
|
+
```ruby
|
|
441
|
+
begin
|
|
442
|
+
# Get job detail
|
|
443
|
+
data, status_code, headers = api_instance.linkedin_get_job_detail_with_http_info(job_id, opts)
|
|
444
|
+
p status_code # => 2xx
|
|
445
|
+
p headers # => { ... }
|
|
446
|
+
p data # => Object
|
|
447
|
+
rescue ScrapeBadger::ApiError => e
|
|
448
|
+
puts "Error when calling LinkedInApi->linkedin_get_job_detail_with_http_info: #{e}"
|
|
449
|
+
end
|
|
450
|
+
```
|
|
451
|
+
|
|
452
|
+
### Parameters
|
|
453
|
+
|
|
454
|
+
| Name | Type | Description | Notes |
|
|
455
|
+
| ---- | ---- | ----------- | ----- |
|
|
456
|
+
| **job_id** | **String** | | |
|
|
457
|
+
| **country** | **String** | Residential proxy country | [optional][default to 'us'] |
|
|
458
|
+
|
|
459
|
+
### Return type
|
|
460
|
+
|
|
461
|
+
**Object**
|
|
462
|
+
|
|
463
|
+
### Authorization
|
|
464
|
+
|
|
465
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
466
|
+
|
|
467
|
+
### HTTP request headers
|
|
468
|
+
|
|
469
|
+
- **Content-Type**: Not defined
|
|
470
|
+
- **Accept**: application/json
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
## linkedin_get_public_profile
|
|
474
|
+
|
|
475
|
+
> Object linkedin_get_public_profile(public_id, opts)
|
|
476
|
+
|
|
477
|
+
Get public profile
|
|
478
|
+
|
|
479
|
+
Public profile by vanity id (the ``/in/{public_id}`` slug) — name, headline, location, about, experience, education (public JSON-LD + SSR subset).
|
|
480
|
+
|
|
481
|
+
### Examples
|
|
482
|
+
|
|
483
|
+
```ruby
|
|
484
|
+
require 'time'
|
|
485
|
+
require 'scrapebadger'
|
|
486
|
+
# setup authorization
|
|
487
|
+
ScrapeBadger.configure do |config|
|
|
488
|
+
# Configure API key authorization: ApiKeyAuth
|
|
489
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
490
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
491
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
api_instance = ScrapeBadger::LinkedInApi.new
|
|
495
|
+
public_id = 'public_id_example' # String |
|
|
496
|
+
opts = {
|
|
497
|
+
country: 'country_example' # String | Residential proxy country
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
begin
|
|
501
|
+
# Get public profile
|
|
502
|
+
result = api_instance.linkedin_get_public_profile(public_id, opts)
|
|
503
|
+
p result
|
|
504
|
+
rescue ScrapeBadger::ApiError => e
|
|
505
|
+
puts "Error when calling LinkedInApi->linkedin_get_public_profile: #{e}"
|
|
506
|
+
end
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
#### Using the linkedin_get_public_profile_with_http_info variant
|
|
510
|
+
|
|
511
|
+
This returns an Array which contains the response data, status code and headers.
|
|
512
|
+
|
|
513
|
+
> <Array(Object, Integer, Hash)> linkedin_get_public_profile_with_http_info(public_id, opts)
|
|
514
|
+
|
|
515
|
+
```ruby
|
|
516
|
+
begin
|
|
517
|
+
# Get public profile
|
|
518
|
+
data, status_code, headers = api_instance.linkedin_get_public_profile_with_http_info(public_id, opts)
|
|
519
|
+
p status_code # => 2xx
|
|
520
|
+
p headers # => { ... }
|
|
521
|
+
p data # => Object
|
|
522
|
+
rescue ScrapeBadger::ApiError => e
|
|
523
|
+
puts "Error when calling LinkedInApi->linkedin_get_public_profile_with_http_info: #{e}"
|
|
524
|
+
end
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
### Parameters
|
|
528
|
+
|
|
529
|
+
| Name | Type | Description | Notes |
|
|
530
|
+
| ---- | ---- | ----------- | ----- |
|
|
531
|
+
| **public_id** | **String** | | |
|
|
532
|
+
| **country** | **String** | Residential proxy country | [optional][default to 'us'] |
|
|
533
|
+
|
|
534
|
+
### Return type
|
|
535
|
+
|
|
536
|
+
**Object**
|
|
537
|
+
|
|
538
|
+
### Authorization
|
|
539
|
+
|
|
540
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
541
|
+
|
|
542
|
+
### HTTP request headers
|
|
543
|
+
|
|
544
|
+
- **Content-Type**: Not defined
|
|
545
|
+
- **Accept**: application/json
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
## linkedin_get_school
|
|
549
|
+
|
|
550
|
+
> Object linkedin_get_school(universal_name, opts)
|
|
551
|
+
|
|
552
|
+
Get school
|
|
553
|
+
|
|
554
|
+
Public school page — name, description, website, follower/alumni counts.
|
|
555
|
+
|
|
556
|
+
### Examples
|
|
557
|
+
|
|
558
|
+
```ruby
|
|
559
|
+
require 'time'
|
|
560
|
+
require 'scrapebadger'
|
|
561
|
+
# setup authorization
|
|
562
|
+
ScrapeBadger.configure do |config|
|
|
563
|
+
# Configure API key authorization: ApiKeyAuth
|
|
564
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
565
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
566
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
api_instance = ScrapeBadger::LinkedInApi.new
|
|
570
|
+
universal_name = 'universal_name_example' # String |
|
|
571
|
+
opts = {
|
|
572
|
+
country: 'country_example' # String | Residential proxy country
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
begin
|
|
576
|
+
# Get school
|
|
577
|
+
result = api_instance.linkedin_get_school(universal_name, opts)
|
|
578
|
+
p result
|
|
579
|
+
rescue ScrapeBadger::ApiError => e
|
|
580
|
+
puts "Error when calling LinkedInApi->linkedin_get_school: #{e}"
|
|
581
|
+
end
|
|
582
|
+
```
|
|
583
|
+
|
|
584
|
+
#### Using the linkedin_get_school_with_http_info variant
|
|
585
|
+
|
|
586
|
+
This returns an Array which contains the response data, status code and headers.
|
|
587
|
+
|
|
588
|
+
> <Array(Object, Integer, Hash)> linkedin_get_school_with_http_info(universal_name, opts)
|
|
589
|
+
|
|
590
|
+
```ruby
|
|
591
|
+
begin
|
|
592
|
+
# Get school
|
|
593
|
+
data, status_code, headers = api_instance.linkedin_get_school_with_http_info(universal_name, opts)
|
|
594
|
+
p status_code # => 2xx
|
|
595
|
+
p headers # => { ... }
|
|
596
|
+
p data # => Object
|
|
597
|
+
rescue ScrapeBadger::ApiError => e
|
|
598
|
+
puts "Error when calling LinkedInApi->linkedin_get_school_with_http_info: #{e}"
|
|
599
|
+
end
|
|
600
|
+
```
|
|
601
|
+
|
|
602
|
+
### Parameters
|
|
603
|
+
|
|
604
|
+
| Name | Type | Description | Notes |
|
|
605
|
+
| ---- | ---- | ----------- | ----- |
|
|
606
|
+
| **universal_name** | **String** | | |
|
|
607
|
+
| **country** | **String** | Residential proxy country | [optional][default to 'us'] |
|
|
608
|
+
|
|
609
|
+
### Return type
|
|
610
|
+
|
|
611
|
+
**Object**
|
|
612
|
+
|
|
613
|
+
### Authorization
|
|
614
|
+
|
|
615
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
616
|
+
|
|
617
|
+
### HTTP request headers
|
|
618
|
+
|
|
619
|
+
- **Content-Type**: Not defined
|
|
620
|
+
- **Accept**: application/json
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
## linkedin_linkedin_scraper_health_check
|
|
624
|
+
|
|
625
|
+
> Object linkedin_linkedin_scraper_health_check
|
|
626
|
+
|
|
627
|
+
LinkedIn scraper health check
|
|
628
|
+
|
|
629
|
+
Check health of the LinkedIn scraper service (accepts HEAD).
|
|
630
|
+
|
|
631
|
+
### Examples
|
|
632
|
+
|
|
633
|
+
```ruby
|
|
634
|
+
require 'time'
|
|
635
|
+
require 'scrapebadger'
|
|
636
|
+
# setup authorization
|
|
637
|
+
ScrapeBadger.configure do |config|
|
|
638
|
+
# Configure API key authorization: ApiKeyAuth
|
|
639
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
640
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
641
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
api_instance = ScrapeBadger::LinkedInApi.new
|
|
645
|
+
|
|
646
|
+
begin
|
|
647
|
+
# LinkedIn scraper health check
|
|
648
|
+
result = api_instance.linkedin_linkedin_scraper_health_check
|
|
649
|
+
p result
|
|
650
|
+
rescue ScrapeBadger::ApiError => e
|
|
651
|
+
puts "Error when calling LinkedInApi->linkedin_linkedin_scraper_health_check: #{e}"
|
|
652
|
+
end
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
#### Using the linkedin_linkedin_scraper_health_check_with_http_info variant
|
|
656
|
+
|
|
657
|
+
This returns an Array which contains the response data, status code and headers.
|
|
658
|
+
|
|
659
|
+
> <Array(Object, Integer, Hash)> linkedin_linkedin_scraper_health_check_with_http_info
|
|
660
|
+
|
|
661
|
+
```ruby
|
|
662
|
+
begin
|
|
663
|
+
# LinkedIn scraper health check
|
|
664
|
+
data, status_code, headers = api_instance.linkedin_linkedin_scraper_health_check_with_http_info
|
|
665
|
+
p status_code # => 2xx
|
|
666
|
+
p headers # => { ... }
|
|
667
|
+
p data # => Object
|
|
668
|
+
rescue ScrapeBadger::ApiError => e
|
|
669
|
+
puts "Error when calling LinkedInApi->linkedin_linkedin_scraper_health_check_with_http_info: #{e}"
|
|
670
|
+
end
|
|
671
|
+
```
|
|
672
|
+
|
|
673
|
+
### Parameters
|
|
674
|
+
|
|
675
|
+
This endpoint does not need any parameter.
|
|
676
|
+
|
|
677
|
+
### Return type
|
|
678
|
+
|
|
679
|
+
**Object**
|
|
680
|
+
|
|
681
|
+
### Authorization
|
|
682
|
+
|
|
683
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
684
|
+
|
|
685
|
+
### HTTP request headers
|
|
686
|
+
|
|
687
|
+
- **Content-Type**: Not defined
|
|
688
|
+
- **Accept**: application/json
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
## linkedin_linkedin_scraper_health_check_head
|
|
692
|
+
|
|
693
|
+
> Object linkedin_linkedin_scraper_health_check_head
|
|
694
|
+
|
|
695
|
+
LinkedIn scraper health check
|
|
696
|
+
|
|
697
|
+
Check health of the LinkedIn scraper service (accepts HEAD).
|
|
698
|
+
|
|
699
|
+
### Examples
|
|
700
|
+
|
|
701
|
+
```ruby
|
|
702
|
+
require 'time'
|
|
703
|
+
require 'scrapebadger'
|
|
704
|
+
# setup authorization
|
|
705
|
+
ScrapeBadger.configure do |config|
|
|
706
|
+
# Configure API key authorization: ApiKeyAuth
|
|
707
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
708
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
709
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
710
|
+
end
|
|
711
|
+
|
|
712
|
+
api_instance = ScrapeBadger::LinkedInApi.new
|
|
713
|
+
|
|
714
|
+
begin
|
|
715
|
+
# LinkedIn scraper health check
|
|
716
|
+
result = api_instance.linkedin_linkedin_scraper_health_check_head
|
|
717
|
+
p result
|
|
718
|
+
rescue ScrapeBadger::ApiError => e
|
|
719
|
+
puts "Error when calling LinkedInApi->linkedin_linkedin_scraper_health_check_head: #{e}"
|
|
720
|
+
end
|
|
721
|
+
```
|
|
722
|
+
|
|
723
|
+
#### Using the linkedin_linkedin_scraper_health_check_head_with_http_info variant
|
|
724
|
+
|
|
725
|
+
This returns an Array which contains the response data, status code and headers.
|
|
726
|
+
|
|
727
|
+
> <Array(Object, Integer, Hash)> linkedin_linkedin_scraper_health_check_head_with_http_info
|
|
728
|
+
|
|
729
|
+
```ruby
|
|
730
|
+
begin
|
|
731
|
+
# LinkedIn scraper health check
|
|
732
|
+
data, status_code, headers = api_instance.linkedin_linkedin_scraper_health_check_head_with_http_info
|
|
733
|
+
p status_code # => 2xx
|
|
734
|
+
p headers # => { ... }
|
|
735
|
+
p data # => Object
|
|
736
|
+
rescue ScrapeBadger::ApiError => e
|
|
737
|
+
puts "Error when calling LinkedInApi->linkedin_linkedin_scraper_health_check_head_with_http_info: #{e}"
|
|
738
|
+
end
|
|
739
|
+
```
|
|
740
|
+
|
|
741
|
+
### Parameters
|
|
742
|
+
|
|
743
|
+
This endpoint does not need any parameter.
|
|
744
|
+
|
|
745
|
+
### Return type
|
|
746
|
+
|
|
747
|
+
**Object**
|
|
748
|
+
|
|
749
|
+
### Authorization
|
|
750
|
+
|
|
751
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
752
|
+
|
|
753
|
+
### HTTP request headers
|
|
754
|
+
|
|
755
|
+
- **Content-Type**: Not defined
|
|
756
|
+
- **Accept**: application/json
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
## linkedin_search_linkedin_jobs
|
|
760
|
+
|
|
761
|
+
> Object linkedin_search_linkedin_jobs(opts)
|
|
762
|
+
|
|
763
|
+
Search LinkedIn jobs
|
|
764
|
+
|
|
765
|
+
Search public LinkedIn job postings (guest API, no login).
|
|
766
|
+
|
|
767
|
+
### Examples
|
|
768
|
+
|
|
769
|
+
```ruby
|
|
770
|
+
require 'time'
|
|
771
|
+
require 'scrapebadger'
|
|
772
|
+
# setup authorization
|
|
773
|
+
ScrapeBadger.configure do |config|
|
|
774
|
+
# Configure API key authorization: ApiKeyAuth
|
|
775
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
776
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
777
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
api_instance = ScrapeBadger::LinkedInApi.new
|
|
781
|
+
opts = {
|
|
782
|
+
keywords: 'keywords_example', # String | Job title / keywords
|
|
783
|
+
location: 'location_example', # String | Location text, e.g. 'New York'
|
|
784
|
+
geo_id: 'geo_id_example', # String | LinkedIn numeric geo id (overrides location)
|
|
785
|
+
company_id: 'company_id_example', # String | Restrict to a company (numeric id)
|
|
786
|
+
date_posted: 'date_posted_example', # String | past_24h | past_week | past_month | any
|
|
787
|
+
experience: 'experience_example', # String | internship|entry|associate|mid_senior|director|executive (comma-separated)
|
|
788
|
+
job_type: 'job_type_example', # String | full_time|part_time|contract|temporary|internship|volunteer|other
|
|
789
|
+
workplace: 'workplace_example', # String | onsite|remote|hybrid (comma-separated)
|
|
790
|
+
sort: 'sort_example', # String | relevant | recent
|
|
791
|
+
start: 56, # Integer | Pagination offset (0, 25, 50, ...)
|
|
792
|
+
country: 'country_example' # String | Residential proxy country
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
begin
|
|
796
|
+
# Search LinkedIn jobs
|
|
797
|
+
result = api_instance.linkedin_search_linkedin_jobs(opts)
|
|
798
|
+
p result
|
|
799
|
+
rescue ScrapeBadger::ApiError => e
|
|
800
|
+
puts "Error when calling LinkedInApi->linkedin_search_linkedin_jobs: #{e}"
|
|
801
|
+
end
|
|
802
|
+
```
|
|
803
|
+
|
|
804
|
+
#### Using the linkedin_search_linkedin_jobs_with_http_info variant
|
|
805
|
+
|
|
806
|
+
This returns an Array which contains the response data, status code and headers.
|
|
807
|
+
|
|
808
|
+
> <Array(Object, Integer, Hash)> linkedin_search_linkedin_jobs_with_http_info(opts)
|
|
809
|
+
|
|
810
|
+
```ruby
|
|
811
|
+
begin
|
|
812
|
+
# Search LinkedIn jobs
|
|
813
|
+
data, status_code, headers = api_instance.linkedin_search_linkedin_jobs_with_http_info(opts)
|
|
814
|
+
p status_code # => 2xx
|
|
815
|
+
p headers # => { ... }
|
|
816
|
+
p data # => Object
|
|
817
|
+
rescue ScrapeBadger::ApiError => e
|
|
818
|
+
puts "Error when calling LinkedInApi->linkedin_search_linkedin_jobs_with_http_info: #{e}"
|
|
819
|
+
end
|
|
820
|
+
```
|
|
821
|
+
|
|
822
|
+
### Parameters
|
|
823
|
+
|
|
824
|
+
| Name | Type | Description | Notes |
|
|
825
|
+
| ---- | ---- | ----------- | ----- |
|
|
826
|
+
| **keywords** | **String** | Job title / keywords | [optional] |
|
|
827
|
+
| **location** | **String** | Location text, e.g. 'New York' | [optional] |
|
|
828
|
+
| **geo_id** | **String** | LinkedIn numeric geo id (overrides location) | [optional] |
|
|
829
|
+
| **company_id** | **String** | Restrict to a company (numeric id) | [optional] |
|
|
830
|
+
| **date_posted** | **String** | past_24h | past_week | past_month | any | [optional] |
|
|
831
|
+
| **experience** | **String** | internship|entry|associate|mid_senior|director|executive (comma-separated) | [optional] |
|
|
832
|
+
| **job_type** | **String** | full_time|part_time|contract|temporary|internship|volunteer|other | [optional] |
|
|
833
|
+
| **workplace** | **String** | onsite|remote|hybrid (comma-separated) | [optional] |
|
|
834
|
+
| **sort** | **String** | relevant | recent | [optional] |
|
|
835
|
+
| **start** | **Integer** | Pagination offset (0, 25, 50, ...) | [optional][default to 0] |
|
|
836
|
+
| **country** | **String** | Residential proxy country | [optional][default to 'us'] |
|
|
837
|
+
|
|
838
|
+
### Return type
|
|
839
|
+
|
|
840
|
+
**Object**
|
|
841
|
+
|
|
842
|
+
### Authorization
|
|
843
|
+
|
|
844
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
845
|
+
|
|
846
|
+
### HTTP request headers
|
|
847
|
+
|
|
848
|
+
- **Content-Type**: Not defined
|
|
849
|
+
- **Accept**: application/json
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
## linkedin_suggest_location_geo_ids
|
|
853
|
+
|
|
854
|
+
> Object linkedin_suggest_location_geo_ids(query, opts)
|
|
855
|
+
|
|
856
|
+
Suggest location geo ids
|
|
857
|
+
|
|
858
|
+
Resolve a name to LinkedIn ids (job-search ``geo_id`` / ``company_id`` helper).
|
|
859
|
+
|
|
860
|
+
### Examples
|
|
861
|
+
|
|
862
|
+
```ruby
|
|
863
|
+
require 'time'
|
|
864
|
+
require 'scrapebadger'
|
|
865
|
+
# setup authorization
|
|
866
|
+
ScrapeBadger.configure do |config|
|
|
867
|
+
# Configure API key authorization: ApiKeyAuth
|
|
868
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
869
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
870
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
871
|
+
end
|
|
872
|
+
|
|
873
|
+
api_instance = ScrapeBadger::LinkedInApi.new
|
|
874
|
+
query = 'query_example' # String | Location text, e.g. 'London'
|
|
875
|
+
opts = {
|
|
876
|
+
type: 'type_example' # String | geo | company
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
begin
|
|
880
|
+
# Suggest location geo ids
|
|
881
|
+
result = api_instance.linkedin_suggest_location_geo_ids(query, opts)
|
|
882
|
+
p result
|
|
883
|
+
rescue ScrapeBadger::ApiError => e
|
|
884
|
+
puts "Error when calling LinkedInApi->linkedin_suggest_location_geo_ids: #{e}"
|
|
885
|
+
end
|
|
886
|
+
```
|
|
887
|
+
|
|
888
|
+
#### Using the linkedin_suggest_location_geo_ids_with_http_info variant
|
|
889
|
+
|
|
890
|
+
This returns an Array which contains the response data, status code and headers.
|
|
891
|
+
|
|
892
|
+
> <Array(Object, Integer, Hash)> linkedin_suggest_location_geo_ids_with_http_info(query, opts)
|
|
893
|
+
|
|
894
|
+
```ruby
|
|
895
|
+
begin
|
|
896
|
+
# Suggest location geo ids
|
|
897
|
+
data, status_code, headers = api_instance.linkedin_suggest_location_geo_ids_with_http_info(query, opts)
|
|
898
|
+
p status_code # => 2xx
|
|
899
|
+
p headers # => { ... }
|
|
900
|
+
p data # => Object
|
|
901
|
+
rescue ScrapeBadger::ApiError => e
|
|
902
|
+
puts "Error when calling LinkedInApi->linkedin_suggest_location_geo_ids_with_http_info: #{e}"
|
|
903
|
+
end
|
|
904
|
+
```
|
|
905
|
+
|
|
906
|
+
### Parameters
|
|
907
|
+
|
|
908
|
+
| Name | Type | Description | Notes |
|
|
909
|
+
| ---- | ---- | ----------- | ----- |
|
|
910
|
+
| **query** | **String** | Location text, e.g. 'London' | |
|
|
911
|
+
| **type** | **String** | geo | company | [optional][default to 'geo'] |
|
|
912
|
+
|
|
913
|
+
### Return type
|
|
914
|
+
|
|
915
|
+
**Object**
|
|
916
|
+
|
|
917
|
+
### Authorization
|
|
918
|
+
|
|
919
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
920
|
+
|
|
921
|
+
### HTTP request headers
|
|
922
|
+
|
|
923
|
+
- **Content-Type**: Not defined
|
|
924
|
+
- **Accept**: application/json
|
|
925
|
+
|