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.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +1 -1
  4. data/lib/x_twitter_scraper/internal/type/union.rb +25 -9
  5. data/lib/x_twitter_scraper/models/content_disclosure.rb +1 -9
  6. data/lib/x_twitter_scraper/models/embedded_tweet.rb +389 -1
  7. data/lib/x_twitter_scraper/models/paginated_tweets.rb +4 -5
  8. data/lib/x_twitter_scraper/models/search_tweet.rb +371 -1
  9. data/lib/x_twitter_scraper/models/support/ticket_list_response.rb +30 -17
  10. data/lib/x_twitter_scraper/models/support/ticket_retrieve_response.rb +49 -24
  11. data/lib/x_twitter_scraper/models/support/ticket_update_response.rb +18 -6
  12. data/lib/x_twitter_scraper/models/trend_list_response.rb +28 -1
  13. data/lib/x_twitter_scraper/models/tweet_media.rb +213 -1
  14. data/lib/x_twitter_scraper/models/user_profile.rb +211 -21
  15. data/lib/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rb +60 -26
  16. data/lib/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rb +4 -4
  17. data/lib/x_twitter_scraper/models/x/account_create_response.rb +149 -2
  18. data/lib/x_twitter_scraper/models/x/account_reauth_response.rb +4 -4
  19. data/lib/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rb +3 -5
  20. data/lib/x_twitter_scraper/models/x/communities/tweet_list_params.rb +3 -5
  21. data/lib/x_twitter_scraper/models/x/community_retrieve_info_response.rb +1 -17
  22. data/lib/x_twitter_scraper/models/x/community_retrieve_search_params.rb +3 -5
  23. data/lib/x_twitter_scraper/models/x/list_retrieve_tweets_params.rb +3 -5
  24. data/lib/x_twitter_scraper/models/x/tweet_author.rb +14 -1
  25. data/lib/x_twitter_scraper/models/x/tweet_detail.rb +373 -1
  26. data/lib/x_twitter_scraper/models/x/tweet_get_quotes_params.rb +3 -5
  27. data/lib/x_twitter_scraper/models/x/tweet_get_replies_params.rb +34 -6
  28. data/lib/x_twitter_scraper/models/x/tweet_get_replies_response.rb +345 -0
  29. data/lib/x_twitter_scraper/models/x/tweet_get_thread_params.rb +3 -5
  30. data/lib/x_twitter_scraper/models/x/user_retrieve_likes_params.rb +3 -5
  31. data/lib/x_twitter_scraper/models/x/user_retrieve_media_params.rb +3 -5
  32. data/lib/x_twitter_scraper/models/x/user_retrieve_mentions_params.rb +3 -5
  33. data/lib/x_twitter_scraper/models/x/user_retrieve_replies_params.rb +3 -5
  34. data/lib/x_twitter_scraper/models/x/user_retrieve_tweets_params.rb +3 -5
  35. data/lib/x_twitter_scraper/models/x_get_article_response.rb +1 -7
  36. data/lib/x_twitter_scraper/models/x_get_trends_response.rb +28 -1
  37. data/lib/x_twitter_scraper/resources/x/account_connection_attempts.rb +1 -1
  38. data/lib/x_twitter_scraper/resources/x/accounts.rb +2 -2
  39. data/lib/x_twitter_scraper/resources/x/communities/tweets.rb +2 -2
  40. data/lib/x_twitter_scraper/resources/x/communities.rb +1 -1
  41. data/lib/x_twitter_scraper/resources/x/lists.rb +1 -1
  42. data/lib/x_twitter_scraper/resources/x/tweets.rb +14 -11
  43. data/lib/x_twitter_scraper/resources/x/users.rb +5 -5
  44. data/lib/x_twitter_scraper/version.rb +1 -1
  45. data/lib/x_twitter_scraper.rb +2 -1
  46. data/rbi/x_twitter_scraper/models/content_disclosure.rbi +1 -15
  47. data/rbi/x_twitter_scraper/models/embedded_tweet.rbi +708 -3
  48. data/rbi/x_twitter_scraper/models/paginated_tweets.rbi +4 -5
  49. data/rbi/x_twitter_scraper/models/search_tweet.rbi +674 -3
  50. data/rbi/x_twitter_scraper/models/support/ticket_list_response.rbi +75 -55
  51. data/rbi/x_twitter_scraper/models/support/ticket_retrieve_response.rbi +129 -87
  52. data/rbi/x_twitter_scraper/models/support/ticket_update_response.rbi +62 -13
  53. data/rbi/x_twitter_scraper/models/trend_list_response.rbi +40 -3
  54. data/rbi/x_twitter_scraper/models/tweet_media.rbi +313 -3
  55. data/rbi/x_twitter_scraper/models/user_profile.rbi +340 -29
  56. data/rbi/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rbi +61 -83
  57. data/rbi/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rbi +6 -6
  58. data/rbi/x_twitter_scraper/models/x/account_create_response.rbi +264 -2
  59. data/rbi/x_twitter_scraper/models/x/account_reauth_response.rbi +6 -6
  60. data/rbi/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbi +4 -8
  61. data/rbi/x_twitter_scraper/models/x/communities/tweet_list_params.rbi +4 -8
  62. data/rbi/x_twitter_scraper/models/x/community_retrieve_info_response.rbi +0 -22
  63. data/rbi/x_twitter_scraper/models/x/community_retrieve_search_params.rbi +4 -8
  64. data/rbi/x_twitter_scraper/models/x/list_retrieve_tweets_params.rbi +4 -8
  65. data/rbi/x_twitter_scraper/models/x/tweet_author.rbi +13 -3
  66. data/rbi/x_twitter_scraper/models/x/tweet_detail.rbi +690 -3
  67. data/rbi/x_twitter_scraper/models/x/tweet_get_quotes_params.rbi +4 -8
  68. data/rbi/x_twitter_scraper/models/x/tweet_get_replies_params.rbi +68 -8
  69. data/rbi/x_twitter_scraper/models/x/tweet_get_replies_response.rbi +527 -0
  70. data/rbi/x_twitter_scraper/models/x/tweet_get_thread_params.rbi +4 -8
  71. data/rbi/x_twitter_scraper/models/x/user_retrieve_likes_params.rbi +4 -8
  72. data/rbi/x_twitter_scraper/models/x/user_retrieve_media_params.rbi +4 -8
  73. data/rbi/x_twitter_scraper/models/x/user_retrieve_mentions_params.rbi +4 -8
  74. data/rbi/x_twitter_scraper/models/x/user_retrieve_replies_params.rbi +4 -8
  75. data/rbi/x_twitter_scraper/models/x/user_retrieve_tweets_params.rbi +4 -8
  76. data/rbi/x_twitter_scraper/models/x_get_article_response.rbi +0 -9
  77. data/rbi/x_twitter_scraper/models/x_get_trends_response.rbi +40 -3
  78. data/rbi/x_twitter_scraper/resources/x/accounts.rbi +1 -1
  79. data/rbi/x_twitter_scraper/resources/x/communities/tweets.rbi +4 -8
  80. data/rbi/x_twitter_scraper/resources/x/communities.rbi +2 -4
  81. data/rbi/x_twitter_scraper/resources/x/lists.rbi +2 -4
  82. data/rbi/x_twitter_scraper/resources/x/tweets.rbi +20 -18
  83. data/rbi/x_twitter_scraper/resources/x/users.rbi +10 -20
  84. data/sig/x_twitter_scraper/models/content_disclosure.rbs +1 -11
  85. data/sig/x_twitter_scraper/models/embedded_tweet.rbs +343 -62
  86. data/sig/x_twitter_scraper/models/search_tweet.rbs +333 -70
  87. data/sig/x_twitter_scraper/models/support/ticket_list_response.rbs +29 -32
  88. data/sig/x_twitter_scraper/models/support/ticket_retrieve_response.rbs +49 -48
  89. data/sig/x_twitter_scraper/models/support/ticket_update_response.rbs +25 -7
  90. data/sig/x_twitter_scraper/models/trend_list_response.rbs +16 -20
  91. data/sig/x_twitter_scraper/models/tweet_media.rbs +146 -15
  92. data/sig/x_twitter_scraper/models/user_profile.rbs +164 -86
  93. data/sig/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rbs +50 -33
  94. data/sig/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rbs +5 -5
  95. data/sig/x_twitter_scraper/models/x/account_create_response.rbs +147 -1
  96. data/sig/x_twitter_scraper/models/x/account_reauth_response.rbs +5 -5
  97. data/sig/x_twitter_scraper/models/x/community_retrieve_info_response.rbs +0 -14
  98. data/sig/x_twitter_scraper/models/x/tweet_author.rbs +11 -3
  99. data/sig/x_twitter_scraper/models/x/tweet_detail.rbs +333 -70
  100. data/sig/x_twitter_scraper/models/x/tweet_get_replies_params.rbs +26 -0
  101. data/sig/x_twitter_scraper/models/x/tweet_get_replies_response.rbs +274 -0
  102. data/sig/x_twitter_scraper/models/x_get_article_response.rbs +0 -7
  103. data/sig/x_twitter_scraper/models/x_get_trends_response.rbs +25 -3
  104. data/sig/x_twitter_scraper/resources/x/accounts.rbs +1 -1
  105. data/sig/x_twitter_scraper/resources/x/tweets.rbs +3 -1
  106. metadata +4 -1
@@ -4,35 +4,7 @@
4
4
 
5
5
  module XTwitterScraper
6
6
  module Models
7
- type embedded_tweet =
8
- {
9
- id: String,
10
- bookmark_count: Integer,
11
- like_count: Integer,
12
- quote_count: Integer,
13
- reply_count: Integer,
14
- retweet_count: Integer,
15
- text: String,
16
- view_count: Integer,
17
- author: XTwitterScraper::UserProfile,
18
- content_disclosure: XTwitterScraper::ContentDisclosure,
19
- conversation_id: String,
20
- created_at: String,
21
- display_text_range: ::Array[Integer],
22
- entities: ::Hash[Symbol, top],
23
- in_reply_to_id: String,
24
- in_reply_to_user_id: String,
25
- in_reply_to_username: String,
26
- is_limited_reply: bool,
27
- is_note_tweet: bool,
28
- is_quote_status: bool,
29
- is_reply: bool,
30
- lang: String,
31
- media: ::Array[XTwitterScraper::TweetMedia],
32
- source: String,
33
- type: String,
34
- url: String
35
- }
7
+ type embedded_tweet = ::Hash[Symbol, top]
36
8
 
37
9
  class EmbeddedTweet < XTwitterScraper::Internal::Type::BaseModel
38
10
  attr_accessor id: String
@@ -51,16 +23,34 @@ module XTwitterScraper
51
23
 
52
24
  attr_accessor view_count: Integer
53
25
 
26
+ attr_reader article: XTwitterScraper::EmbeddedTweet::Article?
27
+
28
+ def article=: (
29
+ XTwitterScraper::EmbeddedTweet::Article | ::Hash[Symbol, top]
30
+ ) -> XTwitterScraper::EmbeddedTweet::Article
31
+
54
32
  attr_reader author: XTwitterScraper::UserProfile?
55
33
 
56
34
  def author=: (
57
- XTwitterScraper::UserProfile
35
+ XTwitterScraper::UserProfile | ::Hash[Symbol, top]
58
36
  ) -> XTwitterScraper::UserProfile
59
37
 
38
+ attr_reader card: XTwitterScraper::EmbeddedTweet::Card?
39
+
40
+ def card=: (
41
+ XTwitterScraper::EmbeddedTweet::Card | ::Hash[Symbol, top]
42
+ ) -> XTwitterScraper::EmbeddedTweet::Card
43
+
44
+ attr_reader community_note: XTwitterScraper::EmbeddedTweet::CommunityNote?
45
+
46
+ def community_note=: (
47
+ XTwitterScraper::EmbeddedTweet::CommunityNote | ::Hash[Symbol, top]
48
+ ) -> XTwitterScraper::EmbeddedTweet::CommunityNote
49
+
60
50
  attr_reader content_disclosure: XTwitterScraper::ContentDisclosure?
61
51
 
62
52
  def content_disclosure=: (
63
- XTwitterScraper::ContentDisclosure
53
+ XTwitterScraper::ContentDisclosure | ::Hash[Symbol, top]
64
54
  ) -> XTwitterScraper::ContentDisclosure
65
55
 
66
56
  attr_reader conversation_id: String?
@@ -75,6 +65,12 @@ module XTwitterScraper
75
65
 
76
66
  def display_text_range=: (::Array[Integer]) -> ::Array[Integer]
77
67
 
68
+ attr_reader edit: XTwitterScraper::EmbeddedTweet::Edit?
69
+
70
+ def edit=: (
71
+ XTwitterScraper::EmbeddedTweet::Edit | ::Hash[Symbol, top]
72
+ ) -> XTwitterScraper::EmbeddedTweet::Edit
73
+
78
74
  attr_reader entities: ::Hash[Symbol, top]?
79
75
 
80
76
  def entities=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
@@ -107,6 +103,10 @@ module XTwitterScraper
107
103
 
108
104
  def is_reply=: (bool) -> bool
109
105
 
106
+ attr_reader is_translatable: bool?
107
+
108
+ def is_translatable=: (bool) -> bool
109
+
110
110
  attr_reader lang: String?
111
111
 
112
112
  def lang=: (String) -> String
@@ -117,6 +117,40 @@ module XTwitterScraper
117
117
  ::Array[XTwitterScraper::TweetMedia]
118
118
  ) -> ::Array[XTwitterScraper::TweetMedia]
119
119
 
120
+ attr_reader note_tweet: XTwitterScraper::EmbeddedTweet::NoteTweet?
121
+
122
+ def note_tweet=: (
123
+ XTwitterScraper::EmbeddedTweet::NoteTweet | ::Hash[Symbol, top]
124
+ ) -> XTwitterScraper::EmbeddedTweet::NoteTweet
125
+
126
+ attr_reader place: XTwitterScraper::EmbeddedTweet::Place?
127
+
128
+ def place=: (
129
+ XTwitterScraper::EmbeddedTweet::Place | ::Hash[Symbol, top]
130
+ ) -> XTwitterScraper::EmbeddedTweet::Place
131
+
132
+ attr_reader possibly_sensitive: bool?
133
+
134
+ def possibly_sensitive=: (bool) -> bool
135
+
136
+ attr_reader previous_counts: XTwitterScraper::EmbeddedTweet::PreviousCounts?
137
+
138
+ def previous_counts=: (
139
+ XTwitterScraper::EmbeddedTweet::PreviousCounts | ::Hash[Symbol, top]
140
+ ) -> XTwitterScraper::EmbeddedTweet::PreviousCounts
141
+
142
+ attr_reader quoted_tweet: XTwitterScraper::EmbeddedTweet?
143
+
144
+ def quoted_tweet=: (
145
+ XTwitterScraper::EmbeddedTweet | ::Hash[Symbol, top]
146
+ ) -> XTwitterScraper::EmbeddedTweet
147
+
148
+ attr_reader retweeted_tweet: XTwitterScraper::EmbeddedTweet?
149
+
150
+ def retweeted_tweet=: (
151
+ XTwitterScraper::EmbeddedTweet | ::Hash[Symbol, top]
152
+ ) -> XTwitterScraper::EmbeddedTweet
153
+
120
154
  attr_reader source: String?
121
155
 
122
156
  def source=: (String) -> String
@@ -129,6 +163,10 @@ module XTwitterScraper
129
163
 
130
164
  def url=: (String) -> String
131
165
 
166
+ attr_reader view_state: String?
167
+
168
+ def view_state=: (String) -> String
169
+
132
170
  def initialize: (
133
171
  id: String,
134
172
  bookmark_count: Integer,
@@ -138,11 +176,15 @@ module XTwitterScraper
138
176
  retweet_count: Integer,
139
177
  text: String,
140
178
  view_count: Integer,
141
- ?author: XTwitterScraper::UserProfile,
142
- ?content_disclosure: XTwitterScraper::ContentDisclosure,
179
+ ?article: XTwitterScraper::EmbeddedTweet::Article | ::Hash[Symbol, top],
180
+ ?author: XTwitterScraper::UserProfile | ::Hash[Symbol, top],
181
+ ?card: XTwitterScraper::EmbeddedTweet::Card | ::Hash[Symbol, top],
182
+ ?community_note: XTwitterScraper::EmbeddedTweet::CommunityNote | ::Hash[Symbol, top],
183
+ ?content_disclosure: XTwitterScraper::ContentDisclosure | ::Hash[Symbol, top],
143
184
  ?conversation_id: String,
144
185
  ?created_at: String,
145
186
  ?display_text_range: ::Array[Integer],
187
+ ?edit: XTwitterScraper::EmbeddedTweet::Edit | ::Hash[Symbol, top],
146
188
  ?entities: ::Hash[Symbol, top],
147
189
  ?in_reply_to_id: String,
148
190
  ?in_reply_to_user_id: String,
@@ -151,41 +193,280 @@ module XTwitterScraper
151
193
  ?is_note_tweet: bool,
152
194
  ?is_quote_status: bool,
153
195
  ?is_reply: bool,
196
+ ?is_translatable: bool,
154
197
  ?lang: String,
155
198
  ?media: ::Array[XTwitterScraper::TweetMedia],
199
+ ?note_tweet: XTwitterScraper::EmbeddedTweet::NoteTweet | ::Hash[Symbol, top],
200
+ ?place: XTwitterScraper::EmbeddedTweet::Place | ::Hash[Symbol, top],
201
+ ?possibly_sensitive: bool,
202
+ ?previous_counts: XTwitterScraper::EmbeddedTweet::PreviousCounts | ::Hash[Symbol, top],
203
+ ?quoted_tweet: XTwitterScraper::EmbeddedTweet | ::Hash[Symbol, top],
204
+ ?retweeted_tweet: XTwitterScraper::EmbeddedTweet | ::Hash[Symbol, top],
156
205
  ?source: String,
157
206
  ?type: String,
158
- ?url: String
207
+ ?url: String,
208
+ ?view_state: String
159
209
  ) -> void
160
210
 
161
- def to_hash: -> {
162
- id: String,
163
- bookmark_count: Integer,
164
- like_count: Integer,
165
- quote_count: Integer,
166
- reply_count: Integer,
167
- retweet_count: Integer,
168
- text: String,
169
- view_count: Integer,
170
- author: XTwitterScraper::UserProfile,
171
- content_disclosure: XTwitterScraper::ContentDisclosure,
172
- conversation_id: String,
173
- created_at: String,
174
- display_text_range: ::Array[Integer],
175
- entities: ::Hash[Symbol, top],
176
- in_reply_to_id: String,
177
- in_reply_to_user_id: String,
178
- in_reply_to_username: String,
179
- is_limited_reply: bool,
180
- is_note_tweet: bool,
181
- is_quote_status: bool,
182
- is_reply: bool,
183
- lang: String,
184
- media: ::Array[XTwitterScraper::TweetMedia],
185
- source: String,
186
- type: String,
187
- url: String
188
- }
211
+ def to_hash: -> ::Hash[Symbol, top]
212
+
213
+ type article = ::Hash[Symbol, top]
214
+
215
+ class Article < XTwitterScraper::Internal::Type::BaseModel
216
+ attr_reader id: String?
217
+
218
+ def id=: (String) -> String
219
+
220
+ attr_reader cover_media_url: String?
221
+
222
+ def cover_media_url=: (String) -> String
223
+
224
+ attr_reader preview_text: String?
225
+
226
+ def preview_text=: (String) -> String
227
+
228
+ attr_reader title: String?
229
+
230
+ def title=: (String) -> String
231
+
232
+ def initialize: (
233
+ ?id: String,
234
+ ?cover_media_url: String,
235
+ ?preview_text: String,
236
+ ?title: String
237
+ ) -> void
238
+
239
+ def to_hash: -> ::Hash[Symbol, top]
240
+ end
241
+
242
+ type card = ::Hash[Symbol, top]
243
+
244
+ class Card < XTwitterScraper::Internal::Type::BaseModel
245
+ attr_reader id: String?
246
+
247
+ def id=: (String) -> String
248
+
249
+ attr_reader binding_values: ::Hash[Symbol, top]?
250
+
251
+ def binding_values=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
252
+
253
+ attr_reader name: String?
254
+
255
+ def name=: (String) -> String
256
+
257
+ attr_reader url: String?
258
+
259
+ def url=: (String) -> String
260
+
261
+ def initialize: (
262
+ ?id: String,
263
+ ?binding_values: ::Hash[Symbol, top],
264
+ ?name: String,
265
+ ?url: String
266
+ ) -> void
267
+
268
+ def to_hash: -> ::Hash[Symbol, top]
269
+ end
270
+
271
+ type community_note = ::Hash[Symbol, top]
272
+
273
+ class CommunityNote < XTwitterScraper::Internal::Type::BaseModel
274
+ attr_reader id: String?
275
+
276
+ def id=: (String) -> String
277
+
278
+ attr_reader destination_url: String?
279
+
280
+ def destination_url=: (String) -> String
281
+
282
+ attr_reader footer: String?
283
+
284
+ def footer=: (String) -> String
285
+
286
+ attr_reader short_title: String?
287
+
288
+ def short_title=: (String) -> String
289
+
290
+ attr_reader subtitle: String?
291
+
292
+ def subtitle=: (String) -> String
293
+
294
+ attr_reader title: String?
295
+
296
+ def title=: (String) -> String
297
+
298
+ attr_reader visual_style: String?
299
+
300
+ def visual_style=: (String) -> String
301
+
302
+ def initialize: (
303
+ ?id: String,
304
+ ?destination_url: String,
305
+ ?footer: String,
306
+ ?short_title: String,
307
+ ?subtitle: String,
308
+ ?title: String,
309
+ ?visual_style: String
310
+ ) -> void
311
+
312
+ def to_hash: -> ::Hash[Symbol, top]
313
+ end
314
+
315
+ type edit =
316
+ { editable_until_msecs: String, edit_tweet_ids: ::Array[String] }
317
+
318
+ class Edit < XTwitterScraper::Internal::Type::BaseModel
319
+ attr_reader editable_until_msecs: String?
320
+
321
+ def editable_until_msecs=: (String) -> String
322
+
323
+ attr_reader edit_tweet_ids: ::Array[String]?
324
+
325
+ def edit_tweet_ids=: (::Array[String]) -> ::Array[String]
326
+
327
+ def initialize: (
328
+ ?editable_until_msecs: String,
329
+ ?edit_tweet_ids: ::Array[String]
330
+ ) -> void
331
+
332
+ def to_hash: -> ::Hash[Symbol, top]
333
+ end
334
+
335
+ type note_tweet = ::Hash[Symbol, top]
336
+
337
+ class NoteTweet < XTwitterScraper::Internal::Type::BaseModel
338
+ attr_accessor text: String
339
+
340
+ attr_reader id: String?
341
+
342
+ def id=: (String) -> String
343
+
344
+ attr_reader entities: ::Hash[Symbol, top]?
345
+
346
+ def entities=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
347
+
348
+ attr_reader is_expandable: bool?
349
+
350
+ def is_expandable=: (bool) -> bool
351
+
352
+ attr_reader richtext_tags: ::Array[XTwitterScraper::EmbeddedTweet::NoteTweet::RichtextTag]?
353
+
354
+ def richtext_tags=: (
355
+ ::Array[XTwitterScraper::EmbeddedTweet::NoteTweet::RichtextTag]
356
+ ) -> ::Array[XTwitterScraper::EmbeddedTweet::NoteTweet::RichtextTag]
357
+
358
+ def initialize: (
359
+ text: String,
360
+ ?id: String,
361
+ ?entities: ::Hash[Symbol, top],
362
+ ?is_expandable: bool,
363
+ ?richtext_tags: ::Array[XTwitterScraper::EmbeddedTweet::NoteTweet::RichtextTag]
364
+ ) -> void
365
+
366
+ def to_hash: -> ::Hash[Symbol, top]
367
+
368
+ type richtext_tag =
369
+ { from_index: Integer, to_index: Integer, types: ::Array[String] }
370
+
371
+ class RichtextTag < XTwitterScraper::Internal::Type::BaseModel
372
+ attr_accessor from_index: Integer
373
+
374
+ attr_accessor to_index: Integer
375
+
376
+ attr_accessor types: ::Array[String]
377
+
378
+ def initialize: (
379
+ from_index: Integer,
380
+ to_index: Integer,
381
+ types: ::Array[String]
382
+ ) -> void
383
+
384
+ def to_hash: -> ::Hash[Symbol, top]
385
+ end
386
+ end
387
+
388
+ type place = ::Hash[Symbol, top]
389
+
390
+ class Place < XTwitterScraper::Internal::Type::BaseModel
391
+ attr_reader id: String?
392
+
393
+ def id=: (String) -> String
394
+
395
+ attr_reader bounding_box: ::Hash[Symbol, top]?
396
+
397
+ def bounding_box=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
398
+
399
+ attr_reader country: String?
400
+
401
+ def country=: (String) -> String
402
+
403
+ attr_reader country_code: String?
404
+
405
+ def country_code=: (String) -> String
406
+
407
+ attr_reader full_name: String?
408
+
409
+ def full_name=: (String) -> String
410
+
411
+ attr_reader name: String?
412
+
413
+ def name=: (String) -> String
414
+
415
+ attr_reader place_type: String?
416
+
417
+ def place_type=: (String) -> String
418
+
419
+ attr_reader url: String?
420
+
421
+ def url=: (String) -> String
422
+
423
+ def initialize: (
424
+ ?id: String,
425
+ ?bounding_box: ::Hash[Symbol, top],
426
+ ?country: String,
427
+ ?country_code: String,
428
+ ?full_name: String,
429
+ ?name: String,
430
+ ?place_type: String,
431
+ ?url: String
432
+ ) -> void
433
+
434
+ def to_hash: -> ::Hash[Symbol, top]
435
+ end
436
+
437
+ type previous_counts = ::Hash[Symbol, top]
438
+
439
+ class PreviousCounts < XTwitterScraper::Internal::Type::BaseModel
440
+ attr_reader bookmark_count: Integer?
441
+
442
+ def bookmark_count=: (Integer) -> Integer
443
+
444
+ attr_reader like_count: Integer?
445
+
446
+ def like_count=: (Integer) -> Integer
447
+
448
+ attr_reader quote_count: Integer?
449
+
450
+ def quote_count=: (Integer) -> Integer
451
+
452
+ attr_reader reply_count: Integer?
453
+
454
+ def reply_count=: (Integer) -> Integer
455
+
456
+ attr_reader retweet_count: Integer?
457
+
458
+ def retweet_count=: (Integer) -> Integer
459
+
460
+ def initialize: (
461
+ ?bookmark_count: Integer,
462
+ ?like_count: Integer,
463
+ ?quote_count: Integer,
464
+ ?reply_count: Integer,
465
+ ?retweet_count: Integer
466
+ ) -> void
467
+
468
+ def to_hash: -> ::Hash[Symbol, top]
469
+ end
189
470
  end
190
471
  end
191
472
  end