x-twitter-scraper 0.7.2 → 0.9.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 +24 -0
- data/README.md +3 -3
- data/lib/x_twitter_scraper/models/credit_topup_balance_response.rb +5 -5
- data/lib/x_twitter_scraper/models/draw_export_params.rb +8 -3
- data/lib/x_twitter_scraper/models/draw_list_params.rb +2 -2
- data/lib/x_twitter_scraper/models/error.rb +8 -0
- data/lib/x_twitter_scraper/models/event_list_params.rb +13 -5
- data/lib/x_twitter_scraper/models/extraction_estimate_cost_params.rb +731 -82
- data/lib/x_twitter_scraper/models/extraction_estimate_cost_response.rb +1 -0
- data/lib/x_twitter_scraper/models/extraction_export_results_params.rb +145 -1
- data/lib/x_twitter_scraper/models/extraction_list_params.rb +2 -2
- data/lib/x_twitter_scraper/models/extraction_retrieve_params.rb +70 -3
- data/lib/x_twitter_scraper/models/extraction_run_params.rb +662 -1
- data/lib/x_twitter_scraper/models/extraction_run_response.rb +27 -48
- data/lib/x_twitter_scraper/models/guest_wallet_create_response.rb +8 -8
- data/lib/x_twitter_scraper/models/guest_wallet_topup_response.rb +9 -9
- data/lib/x_twitter_scraper/models/monitor.rb +29 -1
- data/lib/x_twitter_scraper/models/paginated_tweets.rb +4 -4
- data/lib/x_twitter_scraper/models/paginated_users.rb +5 -5
- data/lib/x_twitter_scraper/models/support/attachment_download_params.rb +28 -0
- data/lib/x_twitter_scraper/models/x/community_retrieve_members_params.rb +113 -1
- data/lib/x_twitter_scraper/models/x/community_retrieve_moderators_params.rb +117 -1
- data/lib/x_twitter_scraper/models/x/list_retrieve_followers_params.rb +117 -6
- data/lib/x_twitter_scraper/models/x/list_retrieve_members_params.rb +116 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_favoriters_params.rb +117 -6
- data/lib/x_twitter_scraper/models/x/tweet_get_quotes_params.rb +153 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_replies_params.rb +246 -16
- data/lib/x_twitter_scraper/models/x/tweet_get_replies_response.rb +3 -2
- data/lib/x_twitter_scraper/models/x/tweet_get_retweeters_params.rb +117 -6
- data/lib/x_twitter_scraper/models/x/tweet_search_params.rb +187 -14
- data/lib/x_twitter_scraper/models/x/tweet_search_response.rb +299 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_params.rb +143 -10
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_response.rb +241 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rb +117 -6
- data/lib/x_twitter_scraper/models/x/user_retrieve_following_params.rb +143 -10
- data/lib/x_twitter_scraper/models/x/user_retrieve_following_response.rb +241 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_likes_params.rb +153 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_media_params.rb +153 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_mentions_params.rb +153 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_replies_params.rb +159 -7
- data/lib/x_twitter_scraper/models/x/user_retrieve_search_params.rb +116 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_tweets_params.rb +159 -7
- data/lib/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rb +157 -8
- data/lib/x_twitter_scraper/models/x/user_retrieve_verified_followers_response.rb +245 -0
- data/lib/x_twitter_scraper/models/x/x_account.rb +7 -11
- data/lib/x_twitter_scraper/resources/credits.rb +2 -2
- data/lib/x_twitter_scraper/resources/draws.rb +5 -2
- data/lib/x_twitter_scraper/resources/events.rb +10 -4
- data/lib/x_twitter_scraper/resources/extractions.rb +383 -84
- data/lib/x_twitter_scraper/resources/guest_wallets.rb +9 -13
- data/lib/x_twitter_scraper/resources/support/attachments.rb +42 -0
- data/lib/x_twitter_scraper/resources/support.rb +5 -0
- data/lib/x_twitter_scraper/resources/x/communities.rb +95 -4
- data/lib/x_twitter_scraper/resources/x/lists.rb +96 -5
- data/lib/x_twitter_scraper/resources/x/tweets.rb +286 -28
- data/lib/x_twitter_scraper/resources/x/users.rb +531 -41
- data/lib/x_twitter_scraper/version.rb +1 -1
- data/lib/x_twitter_scraper.rb +7 -1
- data/rbi/x_twitter_scraper/models/credit_topup_balance_response.rbi +6 -6
- data/rbi/x_twitter_scraper/models/draw_export_params.rbi +6 -3
- data/rbi/x_twitter_scraper/models/draw_list_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/error.rbi +40 -0
- data/rbi/x_twitter_scraper/models/event_list_params.rbi +15 -4
- data/rbi/x_twitter_scraper/models/extraction_estimate_cost_params.rbi +1338 -86
- data/rbi/x_twitter_scraper/models/extraction_estimate_cost_response.rbi +5 -0
- data/rbi/x_twitter_scraper/models/extraction_export_results_params.rbi +198 -0
- data/rbi/x_twitter_scraper/models/extraction_list_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/extraction_retrieve_params.rbi +194 -2
- data/rbi/x_twitter_scraper/models/extraction_run_params.rbi +1221 -0
- data/rbi/x_twitter_scraper/models/extraction_run_response.rbi +35 -162
- data/rbi/x_twitter_scraper/models/guest_wallet_create_response.rbi +8 -6
- data/rbi/x_twitter_scraper/models/guest_wallet_topup_response.rbi +9 -7
- data/rbi/x_twitter_scraper/models/monitor.rbi +54 -3
- data/rbi/x_twitter_scraper/models/paginated_tweets.rbi +4 -4
- data/rbi/x_twitter_scraper/models/paginated_users.rbi +5 -5
- data/rbi/x_twitter_scraper/models/support/attachment_download_params.rbi +51 -0
- data/rbi/x_twitter_scraper/models/x/community_retrieve_members_params.rbi +154 -0
- data/rbi/x_twitter_scraper/models/x/community_retrieve_moderators_params.rbi +154 -0
- data/rbi/x_twitter_scraper/models/x/list_retrieve_followers_params.rbi +160 -8
- data/rbi/x_twitter_scraper/models/x/list_retrieve_members_params.rbi +154 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_favoriters_params.rbi +160 -8
- data/rbi/x_twitter_scraper/models/x/tweet_get_quotes_params.rbi +209 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_replies_params.rbi +403 -20
- data/rbi/x_twitter_scraper/models/x/tweet_get_replies_response.rbi +3 -2
- data/rbi/x_twitter_scraper/models/x/tweet_get_retweeters_params.rbi +160 -8
- data/rbi/x_twitter_scraper/models/x/tweet_search_params.rbi +279 -16
- data/rbi/x_twitter_scraper/models/x/tweet_search_response.rbi +543 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_params.rbi +228 -12
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_response.rbi +440 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rbi +160 -8
- data/rbi/x_twitter_scraper/models/x/user_retrieve_following_params.rbi +228 -12
- data/rbi/x_twitter_scraper/models/x/user_retrieve_following_response.rbi +440 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_likes_params.rbi +209 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_media_params.rbi +209 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_mentions_params.rbi +209 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_replies_params.rbi +217 -8
- data/rbi/x_twitter_scraper/models/x/user_retrieve_search_params.rbi +154 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_tweets_params.rbi +217 -8
- data/rbi/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rbi +248 -10
- data/rbi/x_twitter_scraper/models/x/user_retrieve_verified_followers_response.rbi +440 -0
- data/rbi/x_twitter_scraper/models/x/x_account.rbi +9 -15
- data/rbi/x_twitter_scraper/resources/credits.rbi +2 -2
- data/rbi/x_twitter_scraper/resources/draws.rbi +3 -2
- data/rbi/x_twitter_scraper/resources/events.rbi +5 -2
- data/rbi/x_twitter_scraper/resources/extractions.rbi +525 -83
- data/rbi/x_twitter_scraper/resources/guest_wallets.rbi +9 -13
- data/rbi/x_twitter_scraper/resources/support/attachments.rbi +35 -0
- data/rbi/x_twitter_scraper/resources/support.rbi +4 -0
- data/rbi/x_twitter_scraper/resources/x/communities.rbi +84 -0
- data/rbi/x_twitter_scraper/resources/x/lists.rbi +87 -4
- data/rbi/x_twitter_scraper/resources/x/tweets.rbi +307 -31
- data/rbi/x_twitter_scraper/resources/x/users.rbi +558 -34
- data/sig/x_twitter_scraper/models/error.rbs +16 -0
- data/sig/x_twitter_scraper/models/event_list_params.rbs +7 -0
- data/sig/x_twitter_scraper/models/extraction_estimate_cost_params.rbs +605 -1
- data/sig/x_twitter_scraper/models/extraction_estimate_cost_response.rbs +2 -0
- data/sig/x_twitter_scraper/models/extraction_export_results_params.rbs +127 -1
- data/sig/x_twitter_scraper/models/extraction_retrieve_params.rbs +74 -1
- data/sig/x_twitter_scraper/models/extraction_run_params.rbs +611 -1
- data/sig/x_twitter_scraper/models/extraction_run_response.rbs +29 -67
- data/sig/x_twitter_scraper/models/guest_wallet_create_response.rbs +4 -4
- data/sig/x_twitter_scraper/models/guest_wallet_topup_response.rbs +4 -4
- data/sig/x_twitter_scraper/models/monitor.rbs +29 -3
- data/sig/x_twitter_scraper/models/support/attachment_download_params.rbs +32 -0
- data/sig/x_twitter_scraper/models/x/community_retrieve_members_params.rbs +103 -1
- data/sig/x_twitter_scraper/models/x/community_retrieve_moderators_params.rbs +102 -1
- data/sig/x_twitter_scraper/models/x/list_retrieve_followers_params.rbs +103 -1
- data/sig/x_twitter_scraper/models/x/list_retrieve_members_params.rbs +103 -1
- data/sig/x_twitter_scraper/models/x/tweet_get_favoriters_params.rbs +103 -1
- data/sig/x_twitter_scraper/models/x/tweet_get_quotes_params.rbs +134 -1
- data/sig/x_twitter_scraper/models/x/tweet_get_replies_params.rbs +207 -2
- data/sig/x_twitter_scraper/models/x/tweet_get_retweeters_params.rbs +103 -1
- data/sig/x_twitter_scraper/models/x/tweet_search_params.rbs +154 -1
- data/sig/x_twitter_scraper/models/x/tweet_search_response.rbs +258 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_followers_params.rbs +119 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_followers_response.rbs +216 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rbs +103 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_following_params.rbs +119 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_following_response.rbs +216 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_likes_params.rbs +134 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_media_params.rbs +134 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_mentions_params.rbs +134 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_replies_params.rbs +134 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_search_params.rbs +102 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_tweets_params.rbs +134 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rbs +137 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_verified_followers_response.rbs +216 -0
- data/sig/x_twitter_scraper/resources/events.rbs +1 -0
- data/sig/x_twitter_scraper/resources/extractions.rbs +137 -0
- data/sig/x_twitter_scraper/resources/support/attachments.rbs +15 -0
- data/sig/x_twitter_scraper/resources/support.rbs +2 -0
- data/sig/x_twitter_scraper/resources/x/communities.rbs +28 -0
- data/sig/x_twitter_scraper/resources/x/lists.rbs +28 -0
- data/sig/x_twitter_scraper/resources/x/tweets.rbs +93 -1
- data/sig/x_twitter_scraper/resources/x/users.rbs +173 -3
- metadata +19 -1
|
@@ -24,6 +24,18 @@ module XTwitterScraper
|
|
|
24
24
|
# @return [String, nil]
|
|
25
25
|
optional :any_words, String
|
|
26
26
|
|
|
27
|
+
# @!attribute blue_verified_only
|
|
28
|
+
# Only return tweets from Blue-verified authors.
|
|
29
|
+
#
|
|
30
|
+
# @return [Boolean, nil]
|
|
31
|
+
optional :blue_verified_only, XTwitterScraper::Internal::Type::Boolean
|
|
32
|
+
|
|
33
|
+
# @!attribute card_name
|
|
34
|
+
# Match the Tweet card name.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :card_name, String
|
|
38
|
+
|
|
27
39
|
# @!attribute cashtags
|
|
28
40
|
# Cashtags separated by spaces, commas, or lines.
|
|
29
41
|
#
|
|
@@ -48,6 +60,12 @@ module XTwitterScraper
|
|
|
48
60
|
# @return [String, nil]
|
|
49
61
|
optional :exact_phrase, String
|
|
50
62
|
|
|
63
|
+
# @!attribute exclude_source
|
|
64
|
+
# Exclude a source application.
|
|
65
|
+
#
|
|
66
|
+
# @return [String, nil]
|
|
67
|
+
optional :exclude_source, String
|
|
68
|
+
|
|
51
69
|
# @!attribute exclude_words
|
|
52
70
|
# Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
53
71
|
#
|
|
@@ -60,6 +78,12 @@ module XTwitterScraper
|
|
|
60
78
|
# @return [String, nil]
|
|
61
79
|
optional :from_user, String
|
|
62
80
|
|
|
81
|
+
# @!attribute geocode
|
|
82
|
+
# Match latitude, longitude, and radius.
|
|
83
|
+
#
|
|
84
|
+
# @return [String, nil]
|
|
85
|
+
optional :geocode, String
|
|
86
|
+
|
|
63
87
|
# @!attribute hashtags
|
|
64
88
|
# Hashtags separated by spaces, commas, or lines.
|
|
65
89
|
#
|
|
@@ -78,6 +102,36 @@ module XTwitterScraper
|
|
|
78
102
|
# @return [String, nil]
|
|
79
103
|
optional :language, String
|
|
80
104
|
|
|
105
|
+
# @!attribute max_faves
|
|
106
|
+
# Maximum likes threshold. maxLikes is also accepted.
|
|
107
|
+
#
|
|
108
|
+
# @return [Integer, nil]
|
|
109
|
+
optional :max_faves, Integer
|
|
110
|
+
|
|
111
|
+
# @!attribute max_id
|
|
112
|
+
# Return Tweets older than this Tweet ID.
|
|
113
|
+
#
|
|
114
|
+
# @return [String, nil]
|
|
115
|
+
optional :max_id, String
|
|
116
|
+
|
|
117
|
+
# @!attribute max_quotes
|
|
118
|
+
# Maximum quotes threshold.
|
|
119
|
+
#
|
|
120
|
+
# @return [Integer, nil]
|
|
121
|
+
optional :max_quotes, Integer
|
|
122
|
+
|
|
123
|
+
# @!attribute max_replies
|
|
124
|
+
# Maximum replies threshold.
|
|
125
|
+
#
|
|
126
|
+
# @return [Integer, nil]
|
|
127
|
+
optional :max_replies, Integer
|
|
128
|
+
|
|
129
|
+
# @!attribute max_retweets
|
|
130
|
+
# Maximum retweets threshold.
|
|
131
|
+
#
|
|
132
|
+
# @return [Integer, nil]
|
|
133
|
+
optional :max_retweets, Integer
|
|
134
|
+
|
|
81
135
|
# @!attribute media_type
|
|
82
136
|
# Filter by media type.
|
|
83
137
|
#
|
|
@@ -90,6 +144,12 @@ module XTwitterScraper
|
|
|
90
144
|
# @return [String, nil]
|
|
91
145
|
optional :mentioning, String
|
|
92
146
|
|
|
147
|
+
# @!attribute min_bookmarks
|
|
148
|
+
# Minimum bookmark count threshold.
|
|
149
|
+
#
|
|
150
|
+
# @return [Integer, nil]
|
|
151
|
+
optional :min_bookmarks, Integer
|
|
152
|
+
|
|
93
153
|
# @!attribute min_faves
|
|
94
154
|
# Minimum likes threshold.
|
|
95
155
|
#
|
|
@@ -114,6 +174,30 @@ module XTwitterScraper
|
|
|
114
174
|
# @return [Integer, nil]
|
|
115
175
|
optional :min_retweets, Integer
|
|
116
176
|
|
|
177
|
+
# @!attribute min_views
|
|
178
|
+
# Minimum view count threshold.
|
|
179
|
+
#
|
|
180
|
+
# @return [Integer, nil]
|
|
181
|
+
optional :min_views, Integer
|
|
182
|
+
|
|
183
|
+
# @!attribute native_retweets
|
|
184
|
+
# Only return native reposts.
|
|
185
|
+
#
|
|
186
|
+
# @return [Boolean, nil]
|
|
187
|
+
optional :native_retweets, XTwitterScraper::Internal::Type::Boolean
|
|
188
|
+
|
|
189
|
+
# @!attribute near
|
|
190
|
+
# Match a place name.
|
|
191
|
+
#
|
|
192
|
+
# @return [String, nil]
|
|
193
|
+
optional :near, String
|
|
194
|
+
|
|
195
|
+
# @!attribute news
|
|
196
|
+
# Only return news results.
|
|
197
|
+
#
|
|
198
|
+
# @return [Boolean, nil]
|
|
199
|
+
optional :news, XTwitterScraper::Internal::Type::Boolean
|
|
200
|
+
|
|
117
201
|
# @!attribute page_size
|
|
118
202
|
# Maximum page items (1-100, default 20). Source, filters, or credits can reduce
|
|
119
203
|
# results. Continue while has_next_page is true. Deprecated limit and count
|
|
@@ -152,12 +236,30 @@ module XTwitterScraper
|
|
|
152
236
|
# @return [String, nil]
|
|
153
237
|
optional :retweets_of_tweet_id, String
|
|
154
238
|
|
|
239
|
+
# @!attribute safe
|
|
240
|
+
# Enable the safe-search filter.
|
|
241
|
+
#
|
|
242
|
+
# @return [Boolean, nil]
|
|
243
|
+
optional :safe, XTwitterScraper::Internal::Type::Boolean
|
|
244
|
+
|
|
155
245
|
# @!attribute since_date
|
|
156
246
|
# Start date in YYYY-MM-DD format.
|
|
157
247
|
#
|
|
158
248
|
# @return [Date, nil]
|
|
159
249
|
optional :since_date, Date
|
|
160
250
|
|
|
251
|
+
# @!attribute since_id
|
|
252
|
+
# Return Tweets newer than this Tweet ID.
|
|
253
|
+
#
|
|
254
|
+
# @return [String, nil]
|
|
255
|
+
optional :since_id, String
|
|
256
|
+
|
|
257
|
+
# @!attribute source
|
|
258
|
+
# Match the source application.
|
|
259
|
+
#
|
|
260
|
+
# @return [String, nil]
|
|
261
|
+
optional :source, String
|
|
262
|
+
|
|
161
263
|
# @!attribute to_user
|
|
162
264
|
# Filter replies sent to a username.
|
|
163
265
|
#
|
|
@@ -182,7 +284,19 @@ module XTwitterScraper
|
|
|
182
284
|
# @return [Boolean, nil]
|
|
183
285
|
optional :verified_only, XTwitterScraper::Internal::Type::Boolean
|
|
184
286
|
|
|
185
|
-
# @!
|
|
287
|
+
# @!attribute within
|
|
288
|
+
# Set the radius for the near filter.
|
|
289
|
+
#
|
|
290
|
+
# @return [String, nil]
|
|
291
|
+
optional :within, String
|
|
292
|
+
|
|
293
|
+
# @!attribute within_time
|
|
294
|
+
# Match Tweets inside a recent time window.
|
|
295
|
+
#
|
|
296
|
+
# @return [String, nil]
|
|
297
|
+
optional :within_time, String
|
|
298
|
+
|
|
299
|
+
# @!method initialize(id:, any_words: nil, blue_verified_only: nil, card_name: nil, cashtags: nil, conversation_id: nil, cursor: nil, exact_phrase: nil, exclude_source: nil, exclude_words: nil, from_user: nil, geocode: nil, hashtags: nil, in_reply_to_tweet_id: nil, language: nil, max_faves: nil, max_id: nil, max_quotes: nil, max_replies: nil, max_retweets: nil, media_type: nil, mentioning: nil, min_bookmarks: nil, min_faves: nil, min_quotes: nil, min_replies: nil, min_retweets: nil, min_views: nil, native_retweets: nil, near: nil, news: nil, page_size: nil, quotes: nil, quotes_of_tweet_id: nil, replies: nil, retweets: nil, retweets_of_tweet_id: nil, safe: nil, since_date: nil, since_id: nil, source: nil, to_user: nil, until_date: nil, url: nil, verified_only: nil, within: nil, within_time: nil, request_options: {})
|
|
186
300
|
# Some parameter documentations has been truncated, see
|
|
187
301
|
# {XTwitterScraper::Models::X::UserRetrieveMediaParams} for more details.
|
|
188
302
|
#
|
|
@@ -190,6 +304,10 @@ module XTwitterScraper
|
|
|
190
304
|
#
|
|
191
305
|
# @param any_words [String] Words or quoted phrases where any one can match. Separate with spaces, commas, o
|
|
192
306
|
#
|
|
307
|
+
# @param blue_verified_only [Boolean] Only return tweets from Blue-verified authors.
|
|
308
|
+
#
|
|
309
|
+
# @param card_name [String] Match the Tweet card name.
|
|
310
|
+
#
|
|
193
311
|
# @param cashtags [String] Cashtags separated by spaces, commas, or lines.
|
|
194
312
|
#
|
|
195
313
|
# @param conversation_id [String] Conversation ID filter.
|
|
@@ -198,20 +316,36 @@ module XTwitterScraper
|
|
|
198
316
|
#
|
|
199
317
|
# @param exact_phrase [String] Exact phrase to match.
|
|
200
318
|
#
|
|
319
|
+
# @param exclude_source [String] Exclude a source application.
|
|
320
|
+
#
|
|
201
321
|
# @param exclude_words [String] Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
202
322
|
#
|
|
203
323
|
# @param from_user [String] Filter by author username.
|
|
204
324
|
#
|
|
325
|
+
# @param geocode [String] Match latitude, longitude, and radius.
|
|
326
|
+
#
|
|
205
327
|
# @param hashtags [String] Hashtags separated by spaces, commas, or lines.
|
|
206
328
|
#
|
|
207
329
|
# @param in_reply_to_tweet_id [String] Only replies to this tweet ID.
|
|
208
330
|
#
|
|
209
331
|
# @param language [String] Language code filter, e.g. en or tr.
|
|
210
332
|
#
|
|
333
|
+
# @param max_faves [Integer] Maximum likes threshold. maxLikes is also accepted.
|
|
334
|
+
#
|
|
335
|
+
# @param max_id [String] Return Tweets older than this Tweet ID.
|
|
336
|
+
#
|
|
337
|
+
# @param max_quotes [Integer] Maximum quotes threshold.
|
|
338
|
+
#
|
|
339
|
+
# @param max_replies [Integer] Maximum replies threshold.
|
|
340
|
+
#
|
|
341
|
+
# @param max_retweets [Integer] Maximum retweets threshold.
|
|
342
|
+
#
|
|
211
343
|
# @param media_type [Symbol, XTwitterScraper::Models::X::UserRetrieveMediaParams::MediaType] Filter by media type.
|
|
212
344
|
#
|
|
213
345
|
# @param mentioning [String] Filter tweets mentioning a username.
|
|
214
346
|
#
|
|
347
|
+
# @param min_bookmarks [Integer] Minimum bookmark count threshold.
|
|
348
|
+
#
|
|
215
349
|
# @param min_faves [Integer] Minimum likes threshold.
|
|
216
350
|
#
|
|
217
351
|
# @param min_quotes [Integer] Minimum quote count threshold.
|
|
@@ -220,6 +354,14 @@ module XTwitterScraper
|
|
|
220
354
|
#
|
|
221
355
|
# @param min_retweets [Integer] Minimum retweets threshold.
|
|
222
356
|
#
|
|
357
|
+
# @param min_views [Integer] Minimum view count threshold.
|
|
358
|
+
#
|
|
359
|
+
# @param native_retweets [Boolean] Only return native reposts.
|
|
360
|
+
#
|
|
361
|
+
# @param near [String] Match a place name.
|
|
362
|
+
#
|
|
363
|
+
# @param news [Boolean] Only return news results.
|
|
364
|
+
#
|
|
223
365
|
# @param page_size [Integer] Maximum page items (1-100, default 20). Source, filters, or credits can reduce r
|
|
224
366
|
#
|
|
225
367
|
# @param quotes [Symbol, XTwitterScraper::Models::X::UserRetrieveMediaParams::Quotes] Quote mode.
|
|
@@ -232,8 +374,14 @@ module XTwitterScraper
|
|
|
232
374
|
#
|
|
233
375
|
# @param retweets_of_tweet_id [String] Only retweets of this tweet ID.
|
|
234
376
|
#
|
|
377
|
+
# @param safe [Boolean] Enable the safe-search filter.
|
|
378
|
+
#
|
|
235
379
|
# @param since_date [Date] Start date in YYYY-MM-DD format.
|
|
236
380
|
#
|
|
381
|
+
# @param since_id [String] Return Tweets newer than this Tweet ID.
|
|
382
|
+
#
|
|
383
|
+
# @param source [String] Match the source application.
|
|
384
|
+
#
|
|
237
385
|
# @param to_user [String] Filter replies sent to a username.
|
|
238
386
|
#
|
|
239
387
|
# @param until_date [Date] End date in YYYY-MM-DD format.
|
|
@@ -242,6 +390,10 @@ module XTwitterScraper
|
|
|
242
390
|
#
|
|
243
391
|
# @param verified_only [Boolean] Only return tweets from verified authors.
|
|
244
392
|
#
|
|
393
|
+
# @param within [String] Set the radius for the near filter.
|
|
394
|
+
#
|
|
395
|
+
# @param within_time [String] Match Tweets inside a recent time window.
|
|
396
|
+
#
|
|
245
397
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
246
398
|
|
|
247
399
|
# Filter by media type.
|
|
@@ -24,6 +24,18 @@ module XTwitterScraper
|
|
|
24
24
|
# @return [String, nil]
|
|
25
25
|
optional :any_words, String
|
|
26
26
|
|
|
27
|
+
# @!attribute blue_verified_only
|
|
28
|
+
# Only return tweets from Blue-verified authors.
|
|
29
|
+
#
|
|
30
|
+
# @return [Boolean, nil]
|
|
31
|
+
optional :blue_verified_only, XTwitterScraper::Internal::Type::Boolean
|
|
32
|
+
|
|
33
|
+
# @!attribute card_name
|
|
34
|
+
# Match the Tweet card name.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :card_name, String
|
|
38
|
+
|
|
27
39
|
# @!attribute cashtags
|
|
28
40
|
# Cashtags separated by spaces, commas, or lines.
|
|
29
41
|
#
|
|
@@ -48,6 +60,12 @@ module XTwitterScraper
|
|
|
48
60
|
# @return [String, nil]
|
|
49
61
|
optional :exact_phrase, String
|
|
50
62
|
|
|
63
|
+
# @!attribute exclude_source
|
|
64
|
+
# Exclude a source application.
|
|
65
|
+
#
|
|
66
|
+
# @return [String, nil]
|
|
67
|
+
optional :exclude_source, String
|
|
68
|
+
|
|
51
69
|
# @!attribute exclude_words
|
|
52
70
|
# Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
53
71
|
#
|
|
@@ -60,6 +78,12 @@ module XTwitterScraper
|
|
|
60
78
|
# @return [String, nil]
|
|
61
79
|
optional :from_user, String
|
|
62
80
|
|
|
81
|
+
# @!attribute geocode
|
|
82
|
+
# Match latitude, longitude, and radius.
|
|
83
|
+
#
|
|
84
|
+
# @return [String, nil]
|
|
85
|
+
optional :geocode, String
|
|
86
|
+
|
|
63
87
|
# @!attribute hashtags
|
|
64
88
|
# Hashtags separated by spaces, commas, or lines.
|
|
65
89
|
#
|
|
@@ -78,6 +102,36 @@ module XTwitterScraper
|
|
|
78
102
|
# @return [String, nil]
|
|
79
103
|
optional :language, String
|
|
80
104
|
|
|
105
|
+
# @!attribute max_faves
|
|
106
|
+
# Maximum likes threshold. maxLikes is also accepted.
|
|
107
|
+
#
|
|
108
|
+
# @return [Integer, nil]
|
|
109
|
+
optional :max_faves, Integer
|
|
110
|
+
|
|
111
|
+
# @!attribute max_id
|
|
112
|
+
# Return Tweets older than this Tweet ID.
|
|
113
|
+
#
|
|
114
|
+
# @return [String, nil]
|
|
115
|
+
optional :max_id, String
|
|
116
|
+
|
|
117
|
+
# @!attribute max_quotes
|
|
118
|
+
# Maximum quotes threshold.
|
|
119
|
+
#
|
|
120
|
+
# @return [Integer, nil]
|
|
121
|
+
optional :max_quotes, Integer
|
|
122
|
+
|
|
123
|
+
# @!attribute max_replies
|
|
124
|
+
# Maximum replies threshold.
|
|
125
|
+
#
|
|
126
|
+
# @return [Integer, nil]
|
|
127
|
+
optional :max_replies, Integer
|
|
128
|
+
|
|
129
|
+
# @!attribute max_retweets
|
|
130
|
+
# Maximum retweets threshold.
|
|
131
|
+
#
|
|
132
|
+
# @return [Integer, nil]
|
|
133
|
+
optional :max_retweets, Integer
|
|
134
|
+
|
|
81
135
|
# @!attribute media_type
|
|
82
136
|
# Filter by media type.
|
|
83
137
|
#
|
|
@@ -90,6 +144,12 @@ module XTwitterScraper
|
|
|
90
144
|
# @return [String, nil]
|
|
91
145
|
optional :mentioning, String
|
|
92
146
|
|
|
147
|
+
# @!attribute min_bookmarks
|
|
148
|
+
# Minimum bookmark count threshold.
|
|
149
|
+
#
|
|
150
|
+
# @return [Integer, nil]
|
|
151
|
+
optional :min_bookmarks, Integer
|
|
152
|
+
|
|
93
153
|
# @!attribute min_faves
|
|
94
154
|
# Minimum likes threshold.
|
|
95
155
|
#
|
|
@@ -114,6 +174,30 @@ module XTwitterScraper
|
|
|
114
174
|
# @return [Integer, nil]
|
|
115
175
|
optional :min_retweets, Integer
|
|
116
176
|
|
|
177
|
+
# @!attribute min_views
|
|
178
|
+
# Minimum view count threshold.
|
|
179
|
+
#
|
|
180
|
+
# @return [Integer, nil]
|
|
181
|
+
optional :min_views, Integer
|
|
182
|
+
|
|
183
|
+
# @!attribute native_retweets
|
|
184
|
+
# Only return native reposts.
|
|
185
|
+
#
|
|
186
|
+
# @return [Boolean, nil]
|
|
187
|
+
optional :native_retweets, XTwitterScraper::Internal::Type::Boolean
|
|
188
|
+
|
|
189
|
+
# @!attribute near
|
|
190
|
+
# Match a place name.
|
|
191
|
+
#
|
|
192
|
+
# @return [String, nil]
|
|
193
|
+
optional :near, String
|
|
194
|
+
|
|
195
|
+
# @!attribute news
|
|
196
|
+
# Only return news results.
|
|
197
|
+
#
|
|
198
|
+
# @return [Boolean, nil]
|
|
199
|
+
optional :news, XTwitterScraper::Internal::Type::Boolean
|
|
200
|
+
|
|
117
201
|
# @!attribute page_size
|
|
118
202
|
# Maximum page items (1-100, default 20). Source, filters, or credits can reduce
|
|
119
203
|
# results. Continue while has_next_page is true. Deprecated limit and count
|
|
@@ -152,18 +236,36 @@ module XTwitterScraper
|
|
|
152
236
|
# @return [String, nil]
|
|
153
237
|
optional :retweets_of_tweet_id, String
|
|
154
238
|
|
|
239
|
+
# @!attribute safe
|
|
240
|
+
# Enable the safe-search filter.
|
|
241
|
+
#
|
|
242
|
+
# @return [Boolean, nil]
|
|
243
|
+
optional :safe, XTwitterScraper::Internal::Type::Boolean
|
|
244
|
+
|
|
155
245
|
# @!attribute since_date
|
|
156
246
|
# Start date in YYYY-MM-DD format.
|
|
157
247
|
#
|
|
158
248
|
# @return [Date, nil]
|
|
159
249
|
optional :since_date, Date
|
|
160
250
|
|
|
251
|
+
# @!attribute since_id
|
|
252
|
+
# Return Tweets newer than this Tweet ID.
|
|
253
|
+
#
|
|
254
|
+
# @return [String, nil]
|
|
255
|
+
optional :since_id, String
|
|
256
|
+
|
|
161
257
|
# @!attribute since_time
|
|
162
258
|
# Unix timestamp - return mentions after this time
|
|
163
259
|
#
|
|
164
260
|
# @return [String, nil]
|
|
165
261
|
optional :since_time, String
|
|
166
262
|
|
|
263
|
+
# @!attribute source
|
|
264
|
+
# Match the source application.
|
|
265
|
+
#
|
|
266
|
+
# @return [String, nil]
|
|
267
|
+
optional :source, String
|
|
268
|
+
|
|
167
269
|
# @!attribute to_user
|
|
168
270
|
# Filter replies sent to a username.
|
|
169
271
|
#
|
|
@@ -194,7 +296,19 @@ module XTwitterScraper
|
|
|
194
296
|
# @return [Boolean, nil]
|
|
195
297
|
optional :verified_only, XTwitterScraper::Internal::Type::Boolean
|
|
196
298
|
|
|
197
|
-
# @!
|
|
299
|
+
# @!attribute within
|
|
300
|
+
# Set the radius for the near filter.
|
|
301
|
+
#
|
|
302
|
+
# @return [String, nil]
|
|
303
|
+
optional :within, String
|
|
304
|
+
|
|
305
|
+
# @!attribute within_time
|
|
306
|
+
# Match Tweets inside a recent time window.
|
|
307
|
+
#
|
|
308
|
+
# @return [String, nil]
|
|
309
|
+
optional :within_time, String
|
|
310
|
+
|
|
311
|
+
# @!method initialize(id:, any_words: nil, blue_verified_only: nil, card_name: nil, cashtags: nil, conversation_id: nil, cursor: nil, exact_phrase: nil, exclude_source: nil, exclude_words: nil, from_user: nil, geocode: nil, hashtags: nil, in_reply_to_tweet_id: nil, language: nil, max_faves: nil, max_id: nil, max_quotes: nil, max_replies: nil, max_retweets: nil, media_type: nil, mentioning: nil, min_bookmarks: nil, min_faves: nil, min_quotes: nil, min_replies: nil, min_retweets: nil, min_views: nil, native_retweets: nil, near: nil, news: nil, page_size: nil, quotes: nil, quotes_of_tweet_id: nil, replies: nil, retweets: nil, retweets_of_tweet_id: nil, safe: nil, since_date: nil, since_id: nil, since_time: nil, source: nil, to_user: nil, until_date: nil, until_time: nil, url: nil, verified_only: nil, within: nil, within_time: nil, request_options: {})
|
|
198
312
|
# Some parameter documentations has been truncated, see
|
|
199
313
|
# {XTwitterScraper::Models::X::UserRetrieveMentionsParams} for more details.
|
|
200
314
|
#
|
|
@@ -202,6 +316,10 @@ module XTwitterScraper
|
|
|
202
316
|
#
|
|
203
317
|
# @param any_words [String] Words or quoted phrases where any one can match. Separate with spaces, commas, o
|
|
204
318
|
#
|
|
319
|
+
# @param blue_verified_only [Boolean] Only return tweets from Blue-verified authors.
|
|
320
|
+
#
|
|
321
|
+
# @param card_name [String] Match the Tweet card name.
|
|
322
|
+
#
|
|
205
323
|
# @param cashtags [String] Cashtags separated by spaces, commas, or lines.
|
|
206
324
|
#
|
|
207
325
|
# @param conversation_id [String] Conversation ID filter.
|
|
@@ -210,20 +328,36 @@ module XTwitterScraper
|
|
|
210
328
|
#
|
|
211
329
|
# @param exact_phrase [String] Exact phrase to match.
|
|
212
330
|
#
|
|
331
|
+
# @param exclude_source [String] Exclude a source application.
|
|
332
|
+
#
|
|
213
333
|
# @param exclude_words [String] Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
214
334
|
#
|
|
215
335
|
# @param from_user [String] Filter by author username.
|
|
216
336
|
#
|
|
337
|
+
# @param geocode [String] Match latitude, longitude, and radius.
|
|
338
|
+
#
|
|
217
339
|
# @param hashtags [String] Hashtags separated by spaces, commas, or lines.
|
|
218
340
|
#
|
|
219
341
|
# @param in_reply_to_tweet_id [String] Only replies to this tweet ID.
|
|
220
342
|
#
|
|
221
343
|
# @param language [String] Language code filter, e.g. en or tr.
|
|
222
344
|
#
|
|
345
|
+
# @param max_faves [Integer] Maximum likes threshold. maxLikes is also accepted.
|
|
346
|
+
#
|
|
347
|
+
# @param max_id [String] Return Tweets older than this Tweet ID.
|
|
348
|
+
#
|
|
349
|
+
# @param max_quotes [Integer] Maximum quotes threshold.
|
|
350
|
+
#
|
|
351
|
+
# @param max_replies [Integer] Maximum replies threshold.
|
|
352
|
+
#
|
|
353
|
+
# @param max_retweets [Integer] Maximum retweets threshold.
|
|
354
|
+
#
|
|
223
355
|
# @param media_type [Symbol, XTwitterScraper::Models::X::UserRetrieveMentionsParams::MediaType] Filter by media type.
|
|
224
356
|
#
|
|
225
357
|
# @param mentioning [String] Filter tweets mentioning a username.
|
|
226
358
|
#
|
|
359
|
+
# @param min_bookmarks [Integer] Minimum bookmark count threshold.
|
|
360
|
+
#
|
|
227
361
|
# @param min_faves [Integer] Minimum likes threshold.
|
|
228
362
|
#
|
|
229
363
|
# @param min_quotes [Integer] Minimum quote count threshold.
|
|
@@ -232,6 +366,14 @@ module XTwitterScraper
|
|
|
232
366
|
#
|
|
233
367
|
# @param min_retweets [Integer] Minimum retweets threshold.
|
|
234
368
|
#
|
|
369
|
+
# @param min_views [Integer] Minimum view count threshold.
|
|
370
|
+
#
|
|
371
|
+
# @param native_retweets [Boolean] Only return native reposts.
|
|
372
|
+
#
|
|
373
|
+
# @param near [String] Match a place name.
|
|
374
|
+
#
|
|
375
|
+
# @param news [Boolean] Only return news results.
|
|
376
|
+
#
|
|
235
377
|
# @param page_size [Integer] Maximum page items (1-100, default 20). Source, filters, or credits can reduce r
|
|
236
378
|
#
|
|
237
379
|
# @param quotes [Symbol, XTwitterScraper::Models::X::UserRetrieveMentionsParams::Quotes] Quote mode.
|
|
@@ -244,10 +386,16 @@ module XTwitterScraper
|
|
|
244
386
|
#
|
|
245
387
|
# @param retweets_of_tweet_id [String] Only retweets of this tweet ID.
|
|
246
388
|
#
|
|
389
|
+
# @param safe [Boolean] Enable the safe-search filter.
|
|
390
|
+
#
|
|
247
391
|
# @param since_date [Date] Start date in YYYY-MM-DD format.
|
|
248
392
|
#
|
|
393
|
+
# @param since_id [String] Return Tweets newer than this Tweet ID.
|
|
394
|
+
#
|
|
249
395
|
# @param since_time [String] Unix timestamp - return mentions after this time
|
|
250
396
|
#
|
|
397
|
+
# @param source [String] Match the source application.
|
|
398
|
+
#
|
|
251
399
|
# @param to_user [String] Filter replies sent to a username.
|
|
252
400
|
#
|
|
253
401
|
# @param until_date [Date] End date in YYYY-MM-DD format.
|
|
@@ -258,6 +406,10 @@ module XTwitterScraper
|
|
|
258
406
|
#
|
|
259
407
|
# @param verified_only [Boolean] Only return tweets from verified authors.
|
|
260
408
|
#
|
|
409
|
+
# @param within [String] Set the radius for the near filter.
|
|
410
|
+
#
|
|
411
|
+
# @param within_time [String] Match Tweets inside a recent time window.
|
|
412
|
+
#
|
|
261
413
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
262
414
|
|
|
263
415
|
# Filter by media type.
|