x-twitter-scraper 0.6.0 → 0.7.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 +4 -4
- data/CHANGELOG.md +12 -0
- data/README.md +1 -1
- data/lib/x_twitter_scraper/internal/type/union.rb +25 -9
- data/lib/x_twitter_scraper/models/content_disclosure.rb +1 -9
- data/lib/x_twitter_scraper/models/embedded_tweet.rb +389 -1
- data/lib/x_twitter_scraper/models/paginated_tweets.rb +4 -5
- data/lib/x_twitter_scraper/models/search_tweet.rb +371 -1
- data/lib/x_twitter_scraper/models/support/ticket_list_response.rb +30 -17
- data/lib/x_twitter_scraper/models/support/ticket_retrieve_response.rb +49 -24
- data/lib/x_twitter_scraper/models/support/ticket_update_response.rb +18 -6
- data/lib/x_twitter_scraper/models/trend_list_response.rb +28 -1
- data/lib/x_twitter_scraper/models/tweet_media.rb +213 -1
- data/lib/x_twitter_scraper/models/user_profile.rb +211 -21
- data/lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rb +60 -26
- data/lib/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rb +4 -4
- data/lib/x_twitter_scraper/models/x/account_create_response.rb +149 -2
- data/lib/x_twitter_scraper/models/x/account_reauth_response.rb +4 -4
- data/lib/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rb +3 -5
- data/lib/x_twitter_scraper/models/x/communities/tweet_list_params.rb +3 -5
- data/lib/x_twitter_scraper/models/x/community_retrieve_info_response.rb +1 -17
- data/lib/x_twitter_scraper/models/x/community_retrieve_search_params.rb +3 -5
- data/lib/x_twitter_scraper/models/x/list_retrieve_tweets_params.rb +3 -5
- data/lib/x_twitter_scraper/models/x/tweet_author.rb +14 -1
- data/lib/x_twitter_scraper/models/x/tweet_detail.rb +373 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_quotes_params.rb +3 -5
- data/lib/x_twitter_scraper/models/x/tweet_get_replies_params.rb +34 -6
- data/lib/x_twitter_scraper/models/x/tweet_get_replies_response.rb +345 -0
- data/lib/x_twitter_scraper/models/x/tweet_get_thread_params.rb +3 -5
- data/lib/x_twitter_scraper/models/x/user_retrieve_likes_params.rb +3 -5
- data/lib/x_twitter_scraper/models/x/user_retrieve_media_params.rb +3 -5
- data/lib/x_twitter_scraper/models/x/user_retrieve_mentions_params.rb +3 -5
- data/lib/x_twitter_scraper/models/x/user_retrieve_replies_params.rb +3 -5
- data/lib/x_twitter_scraper/models/x/user_retrieve_tweets_params.rb +3 -5
- data/lib/x_twitter_scraper/models/x_get_article_response.rb +1 -7
- data/lib/x_twitter_scraper/models/x_get_trends_response.rb +28 -1
- data/lib/x_twitter_scraper/resources/x/account_connection_attempts.rb +1 -1
- data/lib/x_twitter_scraper/resources/x/accounts.rb +2 -2
- data/lib/x_twitter_scraper/resources/x/communities/tweets.rb +2 -2
- data/lib/x_twitter_scraper/resources/x/communities.rb +1 -1
- data/lib/x_twitter_scraper/resources/x/lists.rb +1 -1
- data/lib/x_twitter_scraper/resources/x/tweets.rb +14 -11
- data/lib/x_twitter_scraper/resources/x/users.rb +5 -5
- data/lib/x_twitter_scraper/version.rb +1 -1
- data/lib/x_twitter_scraper.rb +2 -1
- data/rbi/x_twitter_scraper/models/content_disclosure.rbi +1 -15
- data/rbi/x_twitter_scraper/models/embedded_tweet.rbi +708 -3
- data/rbi/x_twitter_scraper/models/paginated_tweets.rbi +4 -5
- data/rbi/x_twitter_scraper/models/search_tweet.rbi +674 -3
- data/rbi/x_twitter_scraper/models/support/ticket_list_response.rbi +75 -55
- data/rbi/x_twitter_scraper/models/support/ticket_retrieve_response.rbi +129 -87
- data/rbi/x_twitter_scraper/models/support/ticket_update_response.rbi +62 -13
- data/rbi/x_twitter_scraper/models/trend_list_response.rbi +40 -3
- data/rbi/x_twitter_scraper/models/tweet_media.rbi +313 -3
- data/rbi/x_twitter_scraper/models/user_profile.rbi +340 -29
- data/rbi/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rbi +61 -83
- data/rbi/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/account_create_response.rbi +264 -2
- data/rbi/x_twitter_scraper/models/x/account_reauth_response.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbi +4 -8
- data/rbi/x_twitter_scraper/models/x/communities/tweet_list_params.rbi +4 -8
- data/rbi/x_twitter_scraper/models/x/community_retrieve_info_response.rbi +0 -22
- data/rbi/x_twitter_scraper/models/x/community_retrieve_search_params.rbi +4 -8
- data/rbi/x_twitter_scraper/models/x/list_retrieve_tweets_params.rbi +4 -8
- data/rbi/x_twitter_scraper/models/x/tweet_author.rbi +13 -3
- data/rbi/x_twitter_scraper/models/x/tweet_detail.rbi +690 -3
- data/rbi/x_twitter_scraper/models/x/tweet_get_quotes_params.rbi +4 -8
- data/rbi/x_twitter_scraper/models/x/tweet_get_replies_params.rbi +68 -8
- data/rbi/x_twitter_scraper/models/x/tweet_get_replies_response.rbi +527 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_thread_params.rbi +4 -8
- data/rbi/x_twitter_scraper/models/x/user_retrieve_likes_params.rbi +4 -8
- data/rbi/x_twitter_scraper/models/x/user_retrieve_media_params.rbi +4 -8
- data/rbi/x_twitter_scraper/models/x/user_retrieve_mentions_params.rbi +4 -8
- data/rbi/x_twitter_scraper/models/x/user_retrieve_replies_params.rbi +4 -8
- data/rbi/x_twitter_scraper/models/x/user_retrieve_tweets_params.rbi +4 -8
- data/rbi/x_twitter_scraper/models/x_get_article_response.rbi +0 -9
- data/rbi/x_twitter_scraper/models/x_get_trends_response.rbi +40 -3
- data/rbi/x_twitter_scraper/resources/x/accounts.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/x/communities/tweets.rbi +4 -8
- data/rbi/x_twitter_scraper/resources/x/communities.rbi +2 -4
- data/rbi/x_twitter_scraper/resources/x/lists.rbi +2 -4
- data/rbi/x_twitter_scraper/resources/x/tweets.rbi +20 -18
- data/rbi/x_twitter_scraper/resources/x/users.rbi +10 -20
- data/sig/x_twitter_scraper/models/content_disclosure.rbs +1 -11
- data/sig/x_twitter_scraper/models/embedded_tweet.rbs +343 -62
- data/sig/x_twitter_scraper/models/search_tweet.rbs +333 -70
- data/sig/x_twitter_scraper/models/support/ticket_list_response.rbs +29 -32
- data/sig/x_twitter_scraper/models/support/ticket_retrieve_response.rbs +49 -48
- data/sig/x_twitter_scraper/models/support/ticket_update_response.rbs +25 -7
- data/sig/x_twitter_scraper/models/trend_list_response.rbs +16 -20
- data/sig/x_twitter_scraper/models/tweet_media.rbs +146 -15
- data/sig/x_twitter_scraper/models/user_profile.rbs +164 -86
- data/sig/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rbs +50 -33
- data/sig/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rbs +5 -5
- data/sig/x_twitter_scraper/models/x/account_create_response.rbs +147 -1
- data/sig/x_twitter_scraper/models/x/account_reauth_response.rbs +5 -5
- data/sig/x_twitter_scraper/models/x/community_retrieve_info_response.rbs +0 -14
- data/sig/x_twitter_scraper/models/x/tweet_author.rbs +11 -3
- data/sig/x_twitter_scraper/models/x/tweet_detail.rbs +333 -70
- data/sig/x_twitter_scraper/models/x/tweet_get_replies_params.rbs +26 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_replies_response.rbs +274 -0
- data/sig/x_twitter_scraper/models/x_get_article_response.rbs +0 -7
- data/sig/x_twitter_scraper/models/x_get_trends_response.rbs +25 -3
- data/sig/x_twitter_scraper/resources/x/accounts.rbs +1 -1
- data/sig/x_twitter_scraper/resources/x/tweets.rbs +3 -1
- metadata +4 -1
|
@@ -4,43 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
module XTwitterScraper
|
|
6
6
|
module Models
|
|
7
|
-
type user_profile =
|
|
8
|
-
{
|
|
9
|
-
id: String,
|
|
10
|
-
name: String,
|
|
11
|
-
username: String,
|
|
12
|
-
automated_by: String,
|
|
13
|
-
can_dm: bool,
|
|
14
|
-
community_role: String,
|
|
15
|
-
cover_picture: String,
|
|
16
|
-
created_at: String,
|
|
17
|
-
description: String,
|
|
18
|
-
favourites_count: Integer,
|
|
19
|
-
followers: Integer,
|
|
20
|
-
following: Integer,
|
|
21
|
-
has_custom_timelines: bool,
|
|
22
|
-
is_automated: bool,
|
|
23
|
-
is_blue_verified: bool,
|
|
24
|
-
is_translator: bool,
|
|
25
|
-
is_verified: bool,
|
|
26
|
-
location: String,
|
|
27
|
-
media_count: Integer,
|
|
28
|
-
pinned_tweet_ids: ::Array[String],
|
|
29
|
-
possibly_sensitive: bool,
|
|
30
|
-
profile_bio: ::Hash[Symbol, top],
|
|
31
|
-
profile_banner_url: String,
|
|
32
|
-
profile_picture: String,
|
|
33
|
-
protected: bool,
|
|
34
|
-
statuses_count: Integer,
|
|
35
|
-
unavailable: bool,
|
|
36
|
-
unavailable_reason: String,
|
|
37
|
-
url: String,
|
|
38
|
-
verified: bool,
|
|
39
|
-
verified_type: String,
|
|
40
|
-
viewer_followed_by: bool,
|
|
41
|
-
viewer_following: bool,
|
|
42
|
-
withheld_in_countries: ::Array[String]
|
|
43
|
-
}
|
|
7
|
+
type user_profile = ::Hash[Symbol, top]
|
|
44
8
|
|
|
45
9
|
class UserProfile < XTwitterScraper::Internal::Type::BaseModel
|
|
46
10
|
attr_accessor id: String
|
|
@@ -49,13 +13,19 @@ module XTwitterScraper
|
|
|
49
13
|
|
|
50
14
|
attr_accessor username: String
|
|
51
15
|
|
|
16
|
+
attr_reader affiliates_highlighted_label: XTwitterScraper::UserProfile::AffiliatesHighlightedLabel?
|
|
17
|
+
|
|
18
|
+
def affiliates_highlighted_label=: (
|
|
19
|
+
XTwitterScraper::UserProfile::AffiliatesHighlightedLabel | ::Hash[Symbol, top]
|
|
20
|
+
) -> XTwitterScraper::UserProfile::AffiliatesHighlightedLabel
|
|
21
|
+
|
|
52
22
|
attr_reader automated_by: String?
|
|
53
23
|
|
|
54
24
|
def automated_by=: (String) -> String
|
|
55
25
|
|
|
56
|
-
attr_reader
|
|
26
|
+
attr_reader business_account_affiliates_count: Integer?
|
|
57
27
|
|
|
58
|
-
def
|
|
28
|
+
def business_account_affiliates_count=: (Integer) -> Integer
|
|
59
29
|
|
|
60
30
|
attr_reader community_role: String?
|
|
61
31
|
|
|
@@ -69,6 +39,10 @@ module XTwitterScraper
|
|
|
69
39
|
|
|
70
40
|
def created_at=: (String) -> String
|
|
71
41
|
|
|
42
|
+
attr_reader creator_subscriptions_count: Integer?
|
|
43
|
+
|
|
44
|
+
def creator_subscriptions_count=: (Integer) -> Integer
|
|
45
|
+
|
|
72
46
|
attr_reader description: String?
|
|
73
47
|
|
|
74
48
|
def description=: (String) -> String
|
|
@@ -89,6 +63,26 @@ module XTwitterScraper
|
|
|
89
63
|
|
|
90
64
|
def has_custom_timelines=: (bool) -> bool
|
|
91
65
|
|
|
66
|
+
attr_reader has_graduated_access: bool?
|
|
67
|
+
|
|
68
|
+
def has_graduated_access=: (bool) -> bool
|
|
69
|
+
|
|
70
|
+
attr_reader has_hidden_subscriptions_on_profile: bool?
|
|
71
|
+
|
|
72
|
+
def has_hidden_subscriptions_on_profile=: (bool) -> bool
|
|
73
|
+
|
|
74
|
+
attr_reader highlights_info: XTwitterScraper::UserProfile::HighlightsInfo?
|
|
75
|
+
|
|
76
|
+
def highlights_info=: (
|
|
77
|
+
XTwitterScraper::UserProfile::HighlightsInfo | ::Hash[Symbol, top]
|
|
78
|
+
) -> XTwitterScraper::UserProfile::HighlightsInfo
|
|
79
|
+
|
|
80
|
+
attr_reader identity_verification: XTwitterScraper::UserProfile::IdentityVerification?
|
|
81
|
+
|
|
82
|
+
def identity_verification=: (
|
|
83
|
+
XTwitterScraper::UserProfile::IdentityVerification | ::Hash[Symbol, top]
|
|
84
|
+
) -> XTwitterScraper::UserProfile::IdentityVerification
|
|
85
|
+
|
|
92
86
|
attr_reader is_automated: bool?
|
|
93
87
|
|
|
94
88
|
def is_automated=: (bool) -> bool
|
|
@@ -97,6 +91,10 @@ module XTwitterScraper
|
|
|
97
91
|
|
|
98
92
|
def is_blue_verified=: (bool) -> bool
|
|
99
93
|
|
|
94
|
+
attr_reader is_profile_translatable: bool?
|
|
95
|
+
|
|
96
|
+
def is_profile_translatable=: (bool) -> bool
|
|
97
|
+
|
|
100
98
|
attr_reader is_translator: bool?
|
|
101
99
|
|
|
102
100
|
def is_translator=: (bool) -> bool
|
|
@@ -113,6 +111,10 @@ module XTwitterScraper
|
|
|
113
111
|
|
|
114
112
|
def media_count=: (Integer) -> Integer
|
|
115
113
|
|
|
114
|
+
attr_reader parody_commentary_fan_label: String?
|
|
115
|
+
|
|
116
|
+
def parody_commentary_fan_label=: (String) -> String
|
|
117
|
+
|
|
116
118
|
attr_reader pinned_tweet_ids: ::Array[String]?
|
|
117
119
|
|
|
118
120
|
def pinned_tweet_ids=: (::Array[String]) -> ::Array[String]
|
|
@@ -129,10 +131,30 @@ module XTwitterScraper
|
|
|
129
131
|
|
|
130
132
|
def profile_banner_url=: (String) -> String
|
|
131
133
|
|
|
134
|
+
attr_reader profile_description_language: String?
|
|
135
|
+
|
|
136
|
+
def profile_description_language=: (String) -> String
|
|
137
|
+
|
|
138
|
+
attr_reader profile_image_shape: String?
|
|
139
|
+
|
|
140
|
+
def profile_image_shape=: (String) -> String
|
|
141
|
+
|
|
142
|
+
attr_reader profile_interstitial_type: String?
|
|
143
|
+
|
|
144
|
+
def profile_interstitial_type=: (String) -> String
|
|
145
|
+
|
|
132
146
|
attr_reader profile_picture: String?
|
|
133
147
|
|
|
134
148
|
def profile_picture=: (String) -> String
|
|
135
149
|
|
|
150
|
+
attr_reader profile_sort_enabled: bool?
|
|
151
|
+
|
|
152
|
+
def profile_sort_enabled=: (bool) -> bool
|
|
153
|
+
|
|
154
|
+
attr_reader profile_translator_type: String?
|
|
155
|
+
|
|
156
|
+
def profile_translator_type=: (String) -> String
|
|
157
|
+
|
|
136
158
|
attr_reader protected: bool?
|
|
137
159
|
|
|
138
160
|
def protected=: (bool) -> bool
|
|
@@ -141,6 +163,10 @@ module XTwitterScraper
|
|
|
141
163
|
|
|
142
164
|
def statuses_count=: (Integer) -> Integer
|
|
143
165
|
|
|
166
|
+
attr_reader super_follow_eligible: bool?
|
|
167
|
+
|
|
168
|
+
def super_follow_eligible=: (bool) -> bool
|
|
169
|
+
|
|
144
170
|
attr_reader unavailable: bool?
|
|
145
171
|
|
|
146
172
|
def unavailable=: (bool) -> bool
|
|
@@ -161,14 +187,6 @@ module XTwitterScraper
|
|
|
161
187
|
|
|
162
188
|
def verified_type=: (String) -> String
|
|
163
189
|
|
|
164
|
-
attr_reader viewer_followed_by: bool?
|
|
165
|
-
|
|
166
|
-
def viewer_followed_by=: (bool) -> bool
|
|
167
|
-
|
|
168
|
-
attr_reader viewer_following: bool?
|
|
169
|
-
|
|
170
|
-
def viewer_following=: (bool) -> bool
|
|
171
|
-
|
|
172
190
|
attr_reader withheld_in_countries: ::Array[String]?
|
|
173
191
|
|
|
174
192
|
def withheld_in_countries=: (::Array[String]) -> ::Array[String]
|
|
@@ -177,75 +195,135 @@ module XTwitterScraper
|
|
|
177
195
|
id: String,
|
|
178
196
|
name: String,
|
|
179
197
|
username: String,
|
|
198
|
+
?affiliates_highlighted_label: XTwitterScraper::UserProfile::AffiliatesHighlightedLabel | ::Hash[Symbol, top],
|
|
180
199
|
?automated_by: String,
|
|
181
|
-
?
|
|
200
|
+
?business_account_affiliates_count: Integer,
|
|
182
201
|
?community_role: String,
|
|
183
202
|
?cover_picture: String,
|
|
184
203
|
?created_at: String,
|
|
204
|
+
?creator_subscriptions_count: Integer,
|
|
185
205
|
?description: String,
|
|
186
206
|
?favourites_count: Integer,
|
|
187
207
|
?followers: Integer,
|
|
188
208
|
?following: Integer,
|
|
189
209
|
?has_custom_timelines: bool,
|
|
210
|
+
?has_graduated_access: bool,
|
|
211
|
+
?has_hidden_subscriptions_on_profile: bool,
|
|
212
|
+
?highlights_info: XTwitterScraper::UserProfile::HighlightsInfo | ::Hash[Symbol, top],
|
|
213
|
+
?identity_verification: XTwitterScraper::UserProfile::IdentityVerification | ::Hash[Symbol, top],
|
|
190
214
|
?is_automated: bool,
|
|
191
215
|
?is_blue_verified: bool,
|
|
216
|
+
?is_profile_translatable: bool,
|
|
192
217
|
?is_translator: bool,
|
|
193
218
|
?is_verified: bool,
|
|
194
219
|
?location: String,
|
|
195
220
|
?media_count: Integer,
|
|
221
|
+
?parody_commentary_fan_label: String,
|
|
196
222
|
?pinned_tweet_ids: ::Array[String],
|
|
197
223
|
?possibly_sensitive: bool,
|
|
198
224
|
?profile_bio: ::Hash[Symbol, top],
|
|
199
225
|
?profile_banner_url: String,
|
|
226
|
+
?profile_description_language: String,
|
|
227
|
+
?profile_image_shape: String,
|
|
228
|
+
?profile_interstitial_type: String,
|
|
200
229
|
?profile_picture: String,
|
|
230
|
+
?profile_sort_enabled: bool,
|
|
231
|
+
?profile_translator_type: String,
|
|
201
232
|
?protected: bool,
|
|
202
233
|
?statuses_count: Integer,
|
|
234
|
+
?super_follow_eligible: bool,
|
|
203
235
|
?unavailable: bool,
|
|
204
236
|
?unavailable_reason: String,
|
|
205
237
|
?url: String,
|
|
206
238
|
?verified: bool,
|
|
207
239
|
?verified_type: String,
|
|
208
|
-
?viewer_followed_by: bool,
|
|
209
|
-
?viewer_following: bool,
|
|
210
240
|
?withheld_in_countries: ::Array[String]
|
|
211
241
|
) -> void
|
|
212
242
|
|
|
213
|
-
def to_hash: ->
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
description: String
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
243
|
+
def to_hash: -> ::Hash[Symbol, top]
|
|
244
|
+
|
|
245
|
+
type affiliates_highlighted_label = ::Hash[Symbol, top]
|
|
246
|
+
|
|
247
|
+
class AffiliatesHighlightedLabel < XTwitterScraper::Internal::Type::BaseModel
|
|
248
|
+
attr_reader badge_url: String?
|
|
249
|
+
|
|
250
|
+
def badge_url=: (String) -> String
|
|
251
|
+
|
|
252
|
+
attr_reader description: String?
|
|
253
|
+
|
|
254
|
+
def description=: (String) -> String
|
|
255
|
+
|
|
256
|
+
attr_reader url: String?
|
|
257
|
+
|
|
258
|
+
def url=: (String) -> String
|
|
259
|
+
|
|
260
|
+
attr_reader url_type: String?
|
|
261
|
+
|
|
262
|
+
def url_type=: (String) -> String
|
|
263
|
+
|
|
264
|
+
attr_reader user_label_display_type: String?
|
|
265
|
+
|
|
266
|
+
def user_label_display_type=: (String) -> String
|
|
267
|
+
|
|
268
|
+
attr_reader user_label_type: String?
|
|
269
|
+
|
|
270
|
+
def user_label_type=: (String) -> String
|
|
271
|
+
|
|
272
|
+
def initialize: (
|
|
273
|
+
?badge_url: String,
|
|
274
|
+
?description: String,
|
|
275
|
+
?url: String,
|
|
276
|
+
?url_type: String,
|
|
277
|
+
?user_label_display_type: String,
|
|
278
|
+
?user_label_type: String
|
|
279
|
+
) -> void
|
|
280
|
+
|
|
281
|
+
def to_hash: -> ::Hash[Symbol, top]
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
type highlights_info =
|
|
285
|
+
{ can_highlight_tweets: bool, highlighted_tweets: String }
|
|
286
|
+
|
|
287
|
+
class HighlightsInfo < XTwitterScraper::Internal::Type::BaseModel
|
|
288
|
+
attr_reader can_highlight_tweets: bool?
|
|
289
|
+
|
|
290
|
+
def can_highlight_tweets=: (bool) -> bool
|
|
291
|
+
|
|
292
|
+
attr_reader highlighted_tweets: String?
|
|
293
|
+
|
|
294
|
+
def highlighted_tweets=: (String) -> String
|
|
295
|
+
|
|
296
|
+
def initialize: (
|
|
297
|
+
?can_highlight_tweets: bool,
|
|
298
|
+
?highlighted_tweets: String
|
|
299
|
+
) -> void
|
|
300
|
+
|
|
301
|
+
def to_hash: -> ::Hash[Symbol, top]
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
type identity_verification = ::Hash[Symbol, top]
|
|
305
|
+
|
|
306
|
+
class IdentityVerification < XTwitterScraper::Internal::Type::BaseModel
|
|
307
|
+
attr_reader description: String?
|
|
308
|
+
|
|
309
|
+
def description=: (String) -> String
|
|
310
|
+
|
|
311
|
+
attr_reader is_identity_verified: bool?
|
|
312
|
+
|
|
313
|
+
def is_identity_verified=: (bool) -> bool
|
|
314
|
+
|
|
315
|
+
attr_reader verified_since_msec: String?
|
|
316
|
+
|
|
317
|
+
def verified_since_msec=: (String) -> String
|
|
318
|
+
|
|
319
|
+
def initialize: (
|
|
320
|
+
?description: String,
|
|
321
|
+
?is_identity_verified: bool,
|
|
322
|
+
?verified_since_msec: String
|
|
323
|
+
) -> void
|
|
324
|
+
|
|
325
|
+
def to_hash: -> ::Hash[Symbol, top]
|
|
326
|
+
end
|
|
249
327
|
end
|
|
250
328
|
end
|
|
251
329
|
end
|
|
@@ -2,15 +2,15 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type account_connection_attempt_retrieve_response =
|
|
5
|
-
XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::
|
|
6
|
-
| XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::
|
|
7
|
-
| XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::
|
|
8
|
-
| XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::
|
|
5
|
+
XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::Pending
|
|
6
|
+
| XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::Success
|
|
7
|
+
| XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::Failed
|
|
8
|
+
| XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::RequiresEmailCode
|
|
9
9
|
|
|
10
10
|
module AccountConnectionAttemptRetrieveResponse
|
|
11
11
|
extend XTwitterScraper::Internal::Type::Union
|
|
12
12
|
|
|
13
|
-
type
|
|
13
|
+
type pending =
|
|
14
14
|
{
|
|
15
15
|
id: String,
|
|
16
16
|
object: :x_account_connection_attempt,
|
|
@@ -18,7 +18,7 @@ module XTwitterScraper
|
|
|
18
18
|
status: :pending
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class Pending < XTwitterScraper::Internal::Type::BaseModel
|
|
22
22
|
attr_accessor id: String
|
|
23
23
|
|
|
24
24
|
attr_accessor object: :x_account_connection_attempt
|
|
@@ -40,16 +40,24 @@ module XTwitterScraper
|
|
|
40
40
|
poll_after_ms: Integer,
|
|
41
41
|
status: :pending
|
|
42
42
|
}
|
|
43
|
+
|
|
44
|
+
module Object
|
|
45
|
+
X_ACCOUNT_CONNECTION_ATTEMPT: :x_account_connection_attempt
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
module Status
|
|
49
|
+
PENDING: :pending
|
|
50
|
+
end
|
|
43
51
|
end
|
|
44
52
|
|
|
45
|
-
type
|
|
53
|
+
type success =
|
|
46
54
|
{
|
|
47
55
|
id: String,
|
|
48
56
|
object: :x_account_connection_attempt,
|
|
49
57
|
status: :success
|
|
50
58
|
}
|
|
51
59
|
|
|
52
|
-
class
|
|
60
|
+
class Success < XTwitterScraper::Internal::Type::BaseModel
|
|
53
61
|
attr_accessor id: String
|
|
54
62
|
|
|
55
63
|
attr_accessor object: :x_account_connection_attempt
|
|
@@ -67,9 +75,17 @@ module XTwitterScraper
|
|
|
67
75
|
object: :x_account_connection_attempt,
|
|
68
76
|
status: :success
|
|
69
77
|
}
|
|
78
|
+
|
|
79
|
+
module Object
|
|
80
|
+
X_ACCOUNT_CONNECTION_ATTEMPT: :x_account_connection_attempt
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
module Status
|
|
84
|
+
SUCCESS: :success
|
|
85
|
+
end
|
|
70
86
|
end
|
|
71
87
|
|
|
72
|
-
type
|
|
88
|
+
type failed =
|
|
73
89
|
{
|
|
74
90
|
id: String,
|
|
75
91
|
error: String,
|
|
@@ -79,7 +95,7 @@ module XTwitterScraper
|
|
|
79
95
|
reason: String
|
|
80
96
|
}
|
|
81
97
|
|
|
82
|
-
class
|
|
98
|
+
class Failed < XTwitterScraper::Internal::Type::BaseModel
|
|
83
99
|
attr_accessor id: String
|
|
84
100
|
|
|
85
101
|
attr_accessor error: String
|
|
@@ -111,28 +127,36 @@ module XTwitterScraper
|
|
|
111
127
|
status: :failed,
|
|
112
128
|
reason: String
|
|
113
129
|
}
|
|
130
|
+
|
|
131
|
+
module Object
|
|
132
|
+
X_ACCOUNT_CONNECTION_ATTEMPT: :x_account_connection_attempt
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
module Status
|
|
136
|
+
FAILED: :failed
|
|
137
|
+
end
|
|
114
138
|
end
|
|
115
139
|
|
|
116
|
-
type
|
|
140
|
+
type requires_email_code =
|
|
117
141
|
{
|
|
118
142
|
id: String,
|
|
119
143
|
expires_at: Time,
|
|
120
144
|
message: String,
|
|
121
|
-
object:
|
|
122
|
-
status:
|
|
145
|
+
object: :x_account_connection_challenge,
|
|
146
|
+
status: :requires_email_code,
|
|
123
147
|
username: String
|
|
124
148
|
}
|
|
125
149
|
|
|
126
|
-
class
|
|
150
|
+
class RequiresEmailCode < XTwitterScraper::Internal::Type::BaseModel
|
|
127
151
|
attr_accessor id: String
|
|
128
152
|
|
|
129
153
|
attr_accessor expires_at: Time
|
|
130
154
|
|
|
131
155
|
attr_accessor message: String
|
|
132
156
|
|
|
133
|
-
attr_accessor object:
|
|
157
|
+
attr_accessor object: :x_account_connection_challenge
|
|
134
158
|
|
|
135
|
-
attr_accessor status:
|
|
159
|
+
attr_accessor status: :requires_email_code
|
|
136
160
|
|
|
137
161
|
attr_accessor username: String
|
|
138
162
|
|
|
@@ -140,41 +164,34 @@ module XTwitterScraper
|
|
|
140
164
|
id: String,
|
|
141
165
|
expires_at: Time,
|
|
142
166
|
message: String,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
167
|
+
username: String,
|
|
168
|
+
?object: :x_account_connection_challenge,
|
|
169
|
+
?status: :requires_email_code
|
|
146
170
|
) -> void
|
|
147
171
|
|
|
148
172
|
def to_hash: -> {
|
|
149
173
|
id: String,
|
|
150
174
|
expires_at: Time,
|
|
151
175
|
message: String,
|
|
152
|
-
object:
|
|
153
|
-
status:
|
|
176
|
+
object: :x_account_connection_challenge,
|
|
177
|
+
status: :requires_email_code,
|
|
154
178
|
username: String
|
|
155
179
|
}
|
|
156
180
|
|
|
157
|
-
type object = :x_account_connection_challenge
|
|
158
|
-
|
|
159
181
|
module Object
|
|
160
|
-
extend XTwitterScraper::Internal::Type::Enum
|
|
161
|
-
|
|
162
182
|
X_ACCOUNT_CONNECTION_CHALLENGE: :x_account_connection_challenge
|
|
163
|
-
|
|
164
|
-
def self?.values: -> ::Array[XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::object]
|
|
165
183
|
end
|
|
166
184
|
|
|
167
|
-
type status = :requires_email_code
|
|
168
|
-
|
|
169
185
|
module Status
|
|
170
|
-
extend XTwitterScraper::Internal::Type::Enum
|
|
171
|
-
|
|
172
186
|
REQUIRES_EMAIL_CODE: :requires_email_code
|
|
173
|
-
|
|
174
|
-
def self?.values: -> ::Array[XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::XAccountConnectionChallenge::status]
|
|
175
187
|
end
|
|
176
188
|
end
|
|
177
189
|
|
|
190
|
+
XAccountConnectionAttemptPending: singleton(Pending)
|
|
191
|
+
XAccountConnectionAttemptSuccess: singleton(Success)
|
|
192
|
+
XAccountConnectionAttemptFailed: singleton(Failed)
|
|
193
|
+
XAccountConnectionChallenge: singleton(RequiresEmailCode)
|
|
194
|
+
|
|
178
195
|
def self?.variants: -> ::Array[XTwitterScraper::Models::X::account_connection_attempt_retrieve_response]
|
|
179
196
|
end
|
|
180
197
|
end
|
|
@@ -10,7 +10,7 @@ module XTwitterScraper
|
|
|
10
10
|
id: String,
|
|
11
11
|
created_at: Time,
|
|
12
12
|
health: XTwitterScraper::Models::X::AccountConnectionChallengeSubmitResponse::health,
|
|
13
|
-
status:
|
|
13
|
+
status: :active,
|
|
14
14
|
x_user_id: String,
|
|
15
15
|
x_username: String
|
|
16
16
|
}
|
|
@@ -22,7 +22,7 @@ module XTwitterScraper
|
|
|
22
22
|
|
|
23
23
|
attr_accessor health: XTwitterScraper::Models::X::AccountConnectionChallengeSubmitResponse::health
|
|
24
24
|
|
|
25
|
-
attr_accessor status:
|
|
25
|
+
attr_accessor status: :active
|
|
26
26
|
|
|
27
27
|
attr_accessor x_user_id: String
|
|
28
28
|
|
|
@@ -32,16 +32,16 @@ module XTwitterScraper
|
|
|
32
32
|
id: String,
|
|
33
33
|
created_at: Time,
|
|
34
34
|
health: XTwitterScraper::Models::X::AccountConnectionChallengeSubmitResponse::health,
|
|
35
|
-
status: String,
|
|
36
35
|
x_user_id: String,
|
|
37
|
-
x_username: String
|
|
36
|
+
x_username: String,
|
|
37
|
+
?status: :active
|
|
38
38
|
) -> void
|
|
39
39
|
|
|
40
40
|
def to_hash: -> {
|
|
41
41
|
id: String,
|
|
42
42
|
created_at: Time,
|
|
43
43
|
health: XTwitterScraper::Models::X::AccountConnectionChallengeSubmitResponse::health,
|
|
44
|
-
status:
|
|
44
|
+
status: :active,
|
|
45
45
|
x_user_id: String,
|
|
46
46
|
x_username: String
|
|
47
47
|
}
|