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
|
@@ -22,11 +22,155 @@ module XTwitterScraper
|
|
|
22
22
|
# @return [Symbol, XTwitterScraper::Models::ExtractionExportResultsParams::Format]
|
|
23
23
|
required :format_, enum: -> { XTwitterScraper::ExtractionExportResultsParams::Format }
|
|
24
24
|
|
|
25
|
-
# @!
|
|
25
|
+
# @!attribute has_description
|
|
26
|
+
# Require a non-empty description.
|
|
27
|
+
#
|
|
28
|
+
# @return [Boolean, nil]
|
|
29
|
+
optional :has_description, XTwitterScraper::Internal::Type::Boolean
|
|
30
|
+
|
|
31
|
+
# @!attribute has_location
|
|
32
|
+
# Require a non-empty location.
|
|
33
|
+
#
|
|
34
|
+
# @return [Boolean, nil]
|
|
35
|
+
optional :has_location, XTwitterScraper::Internal::Type::Boolean
|
|
36
|
+
|
|
37
|
+
# @!attribute has_media
|
|
38
|
+
# Require media.
|
|
39
|
+
#
|
|
40
|
+
# @return [Boolean, nil]
|
|
41
|
+
optional :has_media, XTwitterScraper::Internal::Type::Boolean
|
|
42
|
+
|
|
43
|
+
# @!attribute lang
|
|
44
|
+
# Filter by language code.
|
|
45
|
+
#
|
|
46
|
+
# @return [String, nil]
|
|
47
|
+
optional :lang, String
|
|
48
|
+
|
|
49
|
+
# @!attribute max_followers
|
|
50
|
+
# Maximum follower count.
|
|
51
|
+
#
|
|
52
|
+
# @return [Integer, nil]
|
|
53
|
+
optional :max_followers, Integer
|
|
54
|
+
|
|
55
|
+
# @!attribute max_following
|
|
56
|
+
# Maximum following count.
|
|
57
|
+
#
|
|
58
|
+
# @return [Integer, nil]
|
|
59
|
+
optional :max_following, Integer
|
|
60
|
+
|
|
61
|
+
# @!attribute max_posts
|
|
62
|
+
# Maximum post count.
|
|
63
|
+
#
|
|
64
|
+
# @return [Integer, nil]
|
|
65
|
+
optional :max_posts, Integer
|
|
66
|
+
|
|
67
|
+
# @!attribute min_followers
|
|
68
|
+
# Minimum follower count.
|
|
69
|
+
#
|
|
70
|
+
# @return [Integer, nil]
|
|
71
|
+
optional :min_followers, Integer
|
|
72
|
+
|
|
73
|
+
# @!attribute min_following
|
|
74
|
+
# Minimum following count.
|
|
75
|
+
#
|
|
76
|
+
# @return [Integer, nil]
|
|
77
|
+
optional :min_following, Integer
|
|
78
|
+
|
|
79
|
+
# @!attribute min_likes
|
|
80
|
+
# Minimum like count.
|
|
81
|
+
#
|
|
82
|
+
# @return [Integer, nil]
|
|
83
|
+
optional :min_likes, Integer
|
|
84
|
+
|
|
85
|
+
# @!attribute min_posts
|
|
86
|
+
# Minimum post count.
|
|
87
|
+
#
|
|
88
|
+
# @return [Integer, nil]
|
|
89
|
+
optional :min_posts, Integer
|
|
90
|
+
|
|
91
|
+
# @!attribute min_replies
|
|
92
|
+
# Minimum reply count.
|
|
93
|
+
#
|
|
94
|
+
# @return [Integer, nil]
|
|
95
|
+
optional :min_replies, Integer
|
|
96
|
+
|
|
97
|
+
# @!attribute min_retweets
|
|
98
|
+
# Minimum repost count.
|
|
99
|
+
#
|
|
100
|
+
# @return [Integer, nil]
|
|
101
|
+
optional :min_retweets, Integer
|
|
102
|
+
|
|
103
|
+
# @!attribute min_views
|
|
104
|
+
# Minimum view count.
|
|
105
|
+
#
|
|
106
|
+
# @return [Integer, nil]
|
|
107
|
+
optional :min_views, Integer
|
|
108
|
+
|
|
109
|
+
# @!attribute search
|
|
110
|
+
# Search exported result text.
|
|
111
|
+
#
|
|
112
|
+
# @return [String, nil]
|
|
113
|
+
optional :search, String
|
|
114
|
+
|
|
115
|
+
# @!attribute since_date
|
|
116
|
+
# Include results on or after this date.
|
|
117
|
+
#
|
|
118
|
+
# @return [Date, nil]
|
|
119
|
+
optional :since_date, Date
|
|
120
|
+
|
|
121
|
+
# @!attribute until_date
|
|
122
|
+
# Include results on or before this date.
|
|
123
|
+
#
|
|
124
|
+
# @return [Date, nil]
|
|
125
|
+
optional :until_date, Date
|
|
126
|
+
|
|
127
|
+
# @!attribute verified
|
|
128
|
+
# Filter by verified status.
|
|
129
|
+
#
|
|
130
|
+
# @return [Boolean, nil]
|
|
131
|
+
optional :verified, XTwitterScraper::Internal::Type::Boolean
|
|
132
|
+
|
|
133
|
+
# @!method initialize(id:, format_:, has_description: nil, has_location: nil, has_media: nil, lang: nil, max_followers: nil, max_following: nil, max_posts: nil, min_followers: nil, min_following: nil, min_likes: nil, min_posts: nil, min_replies: nil, min_retweets: nil, min_views: nil, search: nil, since_date: nil, until_date: nil, verified: nil, request_options: {})
|
|
26
134
|
# @param id [String]
|
|
27
135
|
#
|
|
28
136
|
# @param format_ [Symbol, XTwitterScraper::Models::ExtractionExportResultsParams::Format] Export file format
|
|
29
137
|
#
|
|
138
|
+
# @param has_description [Boolean] Require a non-empty description.
|
|
139
|
+
#
|
|
140
|
+
# @param has_location [Boolean] Require a non-empty location.
|
|
141
|
+
#
|
|
142
|
+
# @param has_media [Boolean] Require media.
|
|
143
|
+
#
|
|
144
|
+
# @param lang [String] Filter by language code.
|
|
145
|
+
#
|
|
146
|
+
# @param max_followers [Integer] Maximum follower count.
|
|
147
|
+
#
|
|
148
|
+
# @param max_following [Integer] Maximum following count.
|
|
149
|
+
#
|
|
150
|
+
# @param max_posts [Integer] Maximum post count.
|
|
151
|
+
#
|
|
152
|
+
# @param min_followers [Integer] Minimum follower count.
|
|
153
|
+
#
|
|
154
|
+
# @param min_following [Integer] Minimum following count.
|
|
155
|
+
#
|
|
156
|
+
# @param min_likes [Integer] Minimum like count.
|
|
157
|
+
#
|
|
158
|
+
# @param min_posts [Integer] Minimum post count.
|
|
159
|
+
#
|
|
160
|
+
# @param min_replies [Integer] Minimum reply count.
|
|
161
|
+
#
|
|
162
|
+
# @param min_retweets [Integer] Minimum repost count.
|
|
163
|
+
#
|
|
164
|
+
# @param min_views [Integer] Minimum view count.
|
|
165
|
+
#
|
|
166
|
+
# @param search [String] Search exported result text.
|
|
167
|
+
#
|
|
168
|
+
# @param since_date [Date] Include results on or after this date.
|
|
169
|
+
#
|
|
170
|
+
# @param until_date [Date] Include results on or before this date.
|
|
171
|
+
#
|
|
172
|
+
# @param verified [Boolean] Filter by verified status.
|
|
173
|
+
#
|
|
30
174
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
31
175
|
|
|
32
176
|
# Export file format
|
|
@@ -12,7 +12,7 @@ module XTwitterScraper
|
|
|
12
12
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
13
13
|
|
|
14
14
|
# @!attribute cursor
|
|
15
|
-
#
|
|
15
|
+
# Previous nextCursor.
|
|
16
16
|
#
|
|
17
17
|
# @return [String, nil]
|
|
18
18
|
optional :cursor, String
|
|
@@ -42,7 +42,7 @@ module XTwitterScraper
|
|
|
42
42
|
# Some parameter documentations has been truncated, see
|
|
43
43
|
# {XTwitterScraper::Models::ExtractionListParams} for more details.
|
|
44
44
|
#
|
|
45
|
-
# @param cursor [String]
|
|
45
|
+
# @param cursor [String] Previous nextCursor.
|
|
46
46
|
#
|
|
47
47
|
# @param limit [Integer] Maximum number of items to return (1-100, default 50). For paid per-result endpo
|
|
48
48
|
#
|
|
@@ -17,25 +17,92 @@ module XTwitterScraper
|
|
|
17
17
|
required :id, String
|
|
18
18
|
|
|
19
19
|
# @!attribute cursor
|
|
20
|
-
#
|
|
20
|
+
# Previous nextCursor.
|
|
21
21
|
#
|
|
22
22
|
# @return [String, nil]
|
|
23
23
|
optional :cursor, String
|
|
24
24
|
|
|
25
|
+
# @!attribute field_style
|
|
26
|
+
# Preserve source keys or convert result field names.
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, XTwitterScraper::Models::ExtractionRetrieveParams::FieldStyle, nil]
|
|
29
|
+
optional :field_style, enum: -> { XTwitterScraper::ExtractionRetrieveParams::FieldStyle }
|
|
30
|
+
|
|
31
|
+
# @!attribute include_raw
|
|
32
|
+
# Use outputMode=raw instead.
|
|
33
|
+
#
|
|
34
|
+
# @return [Boolean, nil]
|
|
35
|
+
optional :include_raw, XTwitterScraper::Internal::Type::Boolean
|
|
36
|
+
|
|
25
37
|
# @!attribute limit
|
|
26
38
|
# Maximum number of results to return (1-1000, default 100)
|
|
27
39
|
#
|
|
28
40
|
# @return [Integer, nil]
|
|
29
41
|
optional :limit, Integer
|
|
30
42
|
|
|
31
|
-
# @!
|
|
43
|
+
# @!attribute output_mode
|
|
44
|
+
# Select compact, full, or raw-compatible result fields.
|
|
45
|
+
#
|
|
46
|
+
# @return [Symbol, XTwitterScraper::Models::ExtractionRetrieveParams::OutputMode, nil]
|
|
47
|
+
optional :output_mode, enum: -> { XTwitterScraper::ExtractionRetrieveParams::OutputMode }
|
|
48
|
+
|
|
49
|
+
# @!attribute output_preset
|
|
50
|
+
# Keep enrichment nested or merge it into each result.
|
|
51
|
+
#
|
|
52
|
+
# @return [Symbol, XTwitterScraper::Models::ExtractionRetrieveParams::OutputPreset, nil]
|
|
53
|
+
optional :output_preset, enum: -> { XTwitterScraper::ExtractionRetrieveParams::OutputPreset }
|
|
54
|
+
|
|
55
|
+
# @!method initialize(id:, cursor: nil, field_style: nil, include_raw: nil, limit: nil, output_mode: nil, output_preset: nil, request_options: {})
|
|
32
56
|
# @param id [String]
|
|
33
57
|
#
|
|
34
|
-
# @param cursor [String]
|
|
58
|
+
# @param cursor [String] Previous nextCursor.
|
|
59
|
+
#
|
|
60
|
+
# @param field_style [Symbol, XTwitterScraper::Models::ExtractionRetrieveParams::FieldStyle] Preserve source keys or convert result field names.
|
|
61
|
+
#
|
|
62
|
+
# @param include_raw [Boolean] Use outputMode=raw instead.
|
|
35
63
|
#
|
|
36
64
|
# @param limit [Integer] Maximum number of results to return (1-1000, default 100)
|
|
37
65
|
#
|
|
66
|
+
# @param output_mode [Symbol, XTwitterScraper::Models::ExtractionRetrieveParams::OutputMode] Select compact, full, or raw-compatible result fields.
|
|
67
|
+
#
|
|
68
|
+
# @param output_preset [Symbol, XTwitterScraper::Models::ExtractionRetrieveParams::OutputPreset] Keep enrichment nested or merge it into each result.
|
|
69
|
+
#
|
|
38
70
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
71
|
+
|
|
72
|
+
# Preserve source keys or convert result field names.
|
|
73
|
+
module FieldStyle
|
|
74
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
75
|
+
|
|
76
|
+
SOURCE = :source
|
|
77
|
+
CAMEL_CASE = :camelCase
|
|
78
|
+
SNAKE_CASE = :snake_case
|
|
79
|
+
|
|
80
|
+
# @!method self.values
|
|
81
|
+
# @return [Array<Symbol>]
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Select compact, full, or raw-compatible result fields.
|
|
85
|
+
module OutputMode
|
|
86
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
87
|
+
|
|
88
|
+
COMPACT = :compact
|
|
89
|
+
FULL = :full
|
|
90
|
+
RAW = :raw
|
|
91
|
+
|
|
92
|
+
# @!method self.values
|
|
93
|
+
# @return [Array<Symbol>]
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Keep enrichment nested or merge it into each result.
|
|
97
|
+
module OutputPreset
|
|
98
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
99
|
+
|
|
100
|
+
NESTED = :nested
|
|
101
|
+
FLAT = :flat
|
|
102
|
+
|
|
103
|
+
# @!method self.values
|
|
104
|
+
# @return [Array<Symbol>]
|
|
105
|
+
end
|
|
39
106
|
end
|
|
40
107
|
end
|
|
41
108
|
end
|