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
|
@@ -7,44 +7,102 @@ module XTwitterScraper
|
|
|
7
7
|
type extraction_run_params =
|
|
8
8
|
{
|
|
9
9
|
tool_type: XTwitterScraper::Models::ExtractionRunParams::tool_type,
|
|
10
|
+
dry_run: bool,
|
|
10
11
|
advanced_query: String,
|
|
11
12
|
any_words: String,
|
|
13
|
+
bio_contains: String,
|
|
14
|
+
blue_verified_only: bool,
|
|
12
15
|
bounding_box: String,
|
|
16
|
+
card_name: String,
|
|
13
17
|
cashtags: String,
|
|
18
|
+
collection_strategy: XTwitterScraper::Models::ExtractionRunParams::collection_strategy,
|
|
14
19
|
conversation_id: String,
|
|
20
|
+
dedupe_across_targets: bool,
|
|
21
|
+
dedupe_mode: XTwitterScraper::Models::ExtractionRunParams::dedupe_mode,
|
|
15
22
|
exact_phrase: String,
|
|
23
|
+
exclude_original_author: bool,
|
|
24
|
+
exclude_source: String,
|
|
16
25
|
exclude_words: String,
|
|
17
26
|
from_user: String,
|
|
27
|
+
geocode: String,
|
|
18
28
|
hashtags: String,
|
|
29
|
+
has_location: bool,
|
|
30
|
+
has_media_only: bool,
|
|
31
|
+
has_website: bool,
|
|
32
|
+
include_original_post: bool,
|
|
33
|
+
include_search_terms: bool,
|
|
34
|
+
include_target_metadata: bool,
|
|
19
35
|
in_reply_to_tweet_id: String,
|
|
20
36
|
language: String,
|
|
21
37
|
list_id: String,
|
|
38
|
+
location_contains: String,
|
|
39
|
+
max_depth: Integer,
|
|
40
|
+
max_followers: Integer,
|
|
41
|
+
max_following: Integer,
|
|
42
|
+
max_id: String,
|
|
43
|
+
max_items_per_target: Integer,
|
|
44
|
+
max_likes: Integer,
|
|
45
|
+
max_pages_per_target: Integer,
|
|
46
|
+
max_posts: Integer,
|
|
47
|
+
max_quotes: Integer,
|
|
48
|
+
max_replies: Integer,
|
|
49
|
+
max_retweets: Integer,
|
|
22
50
|
media_type: XTwitterScraper::Models::ExtractionRunParams::media_type,
|
|
23
51
|
mentioning: String,
|
|
52
|
+
min_account_age_days: Integer,
|
|
53
|
+
min_bookmarks: Integer,
|
|
24
54
|
min_faves: Integer,
|
|
55
|
+
min_followers: Integer,
|
|
56
|
+
min_following: Integer,
|
|
57
|
+
min_posts: Integer,
|
|
25
58
|
min_quotes: Integer,
|
|
26
59
|
min_replies: Integer,
|
|
27
60
|
min_retweets: Integer,
|
|
61
|
+
min_views: Integer,
|
|
62
|
+
native_retweets: bool,
|
|
63
|
+
near: String,
|
|
64
|
+
news: bool,
|
|
65
|
+
overlap_mode: bool,
|
|
28
66
|
place: String,
|
|
29
67
|
place_country: String,
|
|
30
68
|
point_radius: String,
|
|
69
|
+
query_type: XTwitterScraper::Models::ExtractionRunParams::query_type,
|
|
31
70
|
quotes: XTwitterScraper::Models::ExtractionRunParams::quotes,
|
|
32
71
|
quotes_of_tweet_id: String,
|
|
72
|
+
relation_targets: ::Array[XTwitterScraper::ExtractionRunParams::RelationTarget],
|
|
33
73
|
replies: XTwitterScraper::Models::ExtractionRunParams::replies,
|
|
34
74
|
results_limit: Integer,
|
|
35
75
|
retweets: XTwitterScraper::Models::ExtractionRunParams::retweets,
|
|
36
76
|
retweets_of_tweet_id: String,
|
|
77
|
+
safe: bool,
|
|
78
|
+
scope: XTwitterScraper::Models::ExtractionRunParams::scope,
|
|
79
|
+
search_queries: ::Array[String],
|
|
37
80
|
search_query: String,
|
|
38
81
|
since_date: Date,
|
|
82
|
+
since_id: String,
|
|
83
|
+
since_time: XTwitterScraper::Models::ExtractionRunParams::since_time,
|
|
84
|
+
sort: XTwitterScraper::Models::ExtractionRunParams::sort,
|
|
85
|
+
source: String,
|
|
86
|
+
start_cursor: String,
|
|
39
87
|
target_community_id: String,
|
|
88
|
+
target_community_ids: ::Array[String],
|
|
40
89
|
target_list_id: String,
|
|
90
|
+
target_list_ids: ::Array[String],
|
|
91
|
+
targets: ::Array[XTwitterScraper::Models::ExtractionRunParams::target],
|
|
41
92
|
target_space_id: String,
|
|
42
93
|
target_tweet_id: String,
|
|
94
|
+
target_tweet_ids: ::Array[String],
|
|
43
95
|
target_username: String,
|
|
96
|
+
target_usernames: ::Array[String],
|
|
44
97
|
to_user: String,
|
|
45
98
|
until_date: Date,
|
|
99
|
+
until_time: XTwitterScraper::Models::ExtractionRunParams::until_time,
|
|
46
100
|
url: String,
|
|
47
|
-
|
|
101
|
+
username_contains: String,
|
|
102
|
+
verified_only: bool,
|
|
103
|
+
verified_type: String,
|
|
104
|
+
within: String,
|
|
105
|
+
within_time: String
|
|
48
106
|
}
|
|
49
107
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
50
108
|
|
|
@@ -54,6 +112,10 @@ module XTwitterScraper
|
|
|
54
112
|
|
|
55
113
|
attr_accessor tool_type: XTwitterScraper::Models::ExtractionRunParams::tool_type
|
|
56
114
|
|
|
115
|
+
attr_reader dry_run: bool?
|
|
116
|
+
|
|
117
|
+
def dry_run=: (bool) -> bool
|
|
118
|
+
|
|
57
119
|
attr_reader advanced_query: String?
|
|
58
120
|
|
|
59
121
|
def advanced_query=: (String) -> String
|
|
@@ -62,22 +124,58 @@ module XTwitterScraper
|
|
|
62
124
|
|
|
63
125
|
def any_words=: (String) -> String
|
|
64
126
|
|
|
127
|
+
attr_reader bio_contains: String?
|
|
128
|
+
|
|
129
|
+
def bio_contains=: (String) -> String
|
|
130
|
+
|
|
131
|
+
attr_reader blue_verified_only: bool?
|
|
132
|
+
|
|
133
|
+
def blue_verified_only=: (bool) -> bool
|
|
134
|
+
|
|
65
135
|
attr_reader bounding_box: String?
|
|
66
136
|
|
|
67
137
|
def bounding_box=: (String) -> String
|
|
68
138
|
|
|
139
|
+
attr_reader card_name: String?
|
|
140
|
+
|
|
141
|
+
def card_name=: (String) -> String
|
|
142
|
+
|
|
69
143
|
attr_reader cashtags: String?
|
|
70
144
|
|
|
71
145
|
def cashtags=: (String) -> String
|
|
72
146
|
|
|
147
|
+
attr_reader collection_strategy: XTwitterScraper::Models::ExtractionRunParams::collection_strategy?
|
|
148
|
+
|
|
149
|
+
def collection_strategy=: (
|
|
150
|
+
XTwitterScraper::Models::ExtractionRunParams::collection_strategy
|
|
151
|
+
) -> XTwitterScraper::Models::ExtractionRunParams::collection_strategy
|
|
152
|
+
|
|
73
153
|
attr_reader conversation_id: String?
|
|
74
154
|
|
|
75
155
|
def conversation_id=: (String) -> String
|
|
76
156
|
|
|
157
|
+
attr_reader dedupe_across_targets: bool?
|
|
158
|
+
|
|
159
|
+
def dedupe_across_targets=: (bool) -> bool
|
|
160
|
+
|
|
161
|
+
attr_reader dedupe_mode: XTwitterScraper::Models::ExtractionRunParams::dedupe_mode?
|
|
162
|
+
|
|
163
|
+
def dedupe_mode=: (
|
|
164
|
+
XTwitterScraper::Models::ExtractionRunParams::dedupe_mode
|
|
165
|
+
) -> XTwitterScraper::Models::ExtractionRunParams::dedupe_mode
|
|
166
|
+
|
|
77
167
|
attr_reader exact_phrase: String?
|
|
78
168
|
|
|
79
169
|
def exact_phrase=: (String) -> String
|
|
80
170
|
|
|
171
|
+
attr_reader exclude_original_author: bool?
|
|
172
|
+
|
|
173
|
+
def exclude_original_author=: (bool) -> bool
|
|
174
|
+
|
|
175
|
+
attr_reader exclude_source: String?
|
|
176
|
+
|
|
177
|
+
def exclude_source=: (String) -> String
|
|
178
|
+
|
|
81
179
|
attr_reader exclude_words: String?
|
|
82
180
|
|
|
83
181
|
def exclude_words=: (String) -> String
|
|
@@ -86,10 +184,38 @@ module XTwitterScraper
|
|
|
86
184
|
|
|
87
185
|
def from_user=: (String) -> String
|
|
88
186
|
|
|
187
|
+
attr_reader geocode: String?
|
|
188
|
+
|
|
189
|
+
def geocode=: (String) -> String
|
|
190
|
+
|
|
89
191
|
attr_reader hashtags: String?
|
|
90
192
|
|
|
91
193
|
def hashtags=: (String) -> String
|
|
92
194
|
|
|
195
|
+
attr_reader has_location: bool?
|
|
196
|
+
|
|
197
|
+
def has_location=: (bool) -> bool
|
|
198
|
+
|
|
199
|
+
attr_reader has_media_only: bool?
|
|
200
|
+
|
|
201
|
+
def has_media_only=: (bool) -> bool
|
|
202
|
+
|
|
203
|
+
attr_reader has_website: bool?
|
|
204
|
+
|
|
205
|
+
def has_website=: (bool) -> bool
|
|
206
|
+
|
|
207
|
+
attr_reader include_original_post: bool?
|
|
208
|
+
|
|
209
|
+
def include_original_post=: (bool) -> bool
|
|
210
|
+
|
|
211
|
+
attr_reader include_search_terms: bool?
|
|
212
|
+
|
|
213
|
+
def include_search_terms=: (bool) -> bool
|
|
214
|
+
|
|
215
|
+
attr_reader include_target_metadata: bool?
|
|
216
|
+
|
|
217
|
+
def include_target_metadata=: (bool) -> bool
|
|
218
|
+
|
|
93
219
|
attr_reader in_reply_to_tweet_id: String?
|
|
94
220
|
|
|
95
221
|
def in_reply_to_tweet_id=: (String) -> String
|
|
@@ -102,6 +228,54 @@ module XTwitterScraper
|
|
|
102
228
|
|
|
103
229
|
def list_id=: (String) -> String
|
|
104
230
|
|
|
231
|
+
attr_reader location_contains: String?
|
|
232
|
+
|
|
233
|
+
def location_contains=: (String) -> String
|
|
234
|
+
|
|
235
|
+
attr_reader max_depth: Integer?
|
|
236
|
+
|
|
237
|
+
def max_depth=: (Integer) -> Integer
|
|
238
|
+
|
|
239
|
+
attr_reader max_followers: Integer?
|
|
240
|
+
|
|
241
|
+
def max_followers=: (Integer) -> Integer
|
|
242
|
+
|
|
243
|
+
attr_reader max_following: Integer?
|
|
244
|
+
|
|
245
|
+
def max_following=: (Integer) -> Integer
|
|
246
|
+
|
|
247
|
+
attr_reader max_id: String?
|
|
248
|
+
|
|
249
|
+
def max_id=: (String) -> String
|
|
250
|
+
|
|
251
|
+
attr_reader max_items_per_target: Integer?
|
|
252
|
+
|
|
253
|
+
def max_items_per_target=: (Integer) -> Integer
|
|
254
|
+
|
|
255
|
+
attr_reader max_likes: Integer?
|
|
256
|
+
|
|
257
|
+
def max_likes=: (Integer) -> Integer
|
|
258
|
+
|
|
259
|
+
attr_reader max_pages_per_target: Integer?
|
|
260
|
+
|
|
261
|
+
def max_pages_per_target=: (Integer) -> Integer
|
|
262
|
+
|
|
263
|
+
attr_reader max_posts: Integer?
|
|
264
|
+
|
|
265
|
+
def max_posts=: (Integer) -> Integer
|
|
266
|
+
|
|
267
|
+
attr_reader max_quotes: Integer?
|
|
268
|
+
|
|
269
|
+
def max_quotes=: (Integer) -> Integer
|
|
270
|
+
|
|
271
|
+
attr_reader max_replies: Integer?
|
|
272
|
+
|
|
273
|
+
def max_replies=: (Integer) -> Integer
|
|
274
|
+
|
|
275
|
+
attr_reader max_retweets: Integer?
|
|
276
|
+
|
|
277
|
+
def max_retweets=: (Integer) -> Integer
|
|
278
|
+
|
|
105
279
|
attr_reader media_type: XTwitterScraper::Models::ExtractionRunParams::media_type?
|
|
106
280
|
|
|
107
281
|
def media_type=: (
|
|
@@ -112,10 +286,30 @@ module XTwitterScraper
|
|
|
112
286
|
|
|
113
287
|
def mentioning=: (String) -> String
|
|
114
288
|
|
|
289
|
+
attr_reader min_account_age_days: Integer?
|
|
290
|
+
|
|
291
|
+
def min_account_age_days=: (Integer) -> Integer
|
|
292
|
+
|
|
293
|
+
attr_reader min_bookmarks: Integer?
|
|
294
|
+
|
|
295
|
+
def min_bookmarks=: (Integer) -> Integer
|
|
296
|
+
|
|
115
297
|
attr_reader min_faves: Integer?
|
|
116
298
|
|
|
117
299
|
def min_faves=: (Integer) -> Integer
|
|
118
300
|
|
|
301
|
+
attr_reader min_followers: Integer?
|
|
302
|
+
|
|
303
|
+
def min_followers=: (Integer) -> Integer
|
|
304
|
+
|
|
305
|
+
attr_reader min_following: Integer?
|
|
306
|
+
|
|
307
|
+
def min_following=: (Integer) -> Integer
|
|
308
|
+
|
|
309
|
+
attr_reader min_posts: Integer?
|
|
310
|
+
|
|
311
|
+
def min_posts=: (Integer) -> Integer
|
|
312
|
+
|
|
119
313
|
attr_reader min_quotes: Integer?
|
|
120
314
|
|
|
121
315
|
def min_quotes=: (Integer) -> Integer
|
|
@@ -128,6 +322,26 @@ module XTwitterScraper
|
|
|
128
322
|
|
|
129
323
|
def min_retweets=: (Integer) -> Integer
|
|
130
324
|
|
|
325
|
+
attr_reader min_views: Integer?
|
|
326
|
+
|
|
327
|
+
def min_views=: (Integer) -> Integer
|
|
328
|
+
|
|
329
|
+
attr_reader native_retweets: bool?
|
|
330
|
+
|
|
331
|
+
def native_retweets=: (bool) -> bool
|
|
332
|
+
|
|
333
|
+
attr_reader near: String?
|
|
334
|
+
|
|
335
|
+
def near=: (String) -> String
|
|
336
|
+
|
|
337
|
+
attr_reader news: bool?
|
|
338
|
+
|
|
339
|
+
def news=: (bool) -> bool
|
|
340
|
+
|
|
341
|
+
attr_reader overlap_mode: bool?
|
|
342
|
+
|
|
343
|
+
def overlap_mode=: (bool) -> bool
|
|
344
|
+
|
|
131
345
|
attr_reader place: String?
|
|
132
346
|
|
|
133
347
|
def place=: (String) -> String
|
|
@@ -140,6 +354,12 @@ module XTwitterScraper
|
|
|
140
354
|
|
|
141
355
|
def point_radius=: (String) -> String
|
|
142
356
|
|
|
357
|
+
attr_reader query_type: XTwitterScraper::Models::ExtractionRunParams::query_type?
|
|
358
|
+
|
|
359
|
+
def query_type=: (
|
|
360
|
+
XTwitterScraper::Models::ExtractionRunParams::query_type
|
|
361
|
+
) -> XTwitterScraper::Models::ExtractionRunParams::query_type
|
|
362
|
+
|
|
143
363
|
attr_reader quotes: XTwitterScraper::Models::ExtractionRunParams::quotes?
|
|
144
364
|
|
|
145
365
|
def quotes=: (
|
|
@@ -150,6 +370,12 @@ module XTwitterScraper
|
|
|
150
370
|
|
|
151
371
|
def quotes_of_tweet_id=: (String) -> String
|
|
152
372
|
|
|
373
|
+
attr_reader relation_targets: ::Array[XTwitterScraper::ExtractionRunParams::RelationTarget]?
|
|
374
|
+
|
|
375
|
+
def relation_targets=: (
|
|
376
|
+
::Array[XTwitterScraper::ExtractionRunParams::RelationTarget]
|
|
377
|
+
) -> ::Array[XTwitterScraper::ExtractionRunParams::RelationTarget]
|
|
378
|
+
|
|
153
379
|
attr_reader replies: XTwitterScraper::Models::ExtractionRunParams::replies?
|
|
154
380
|
|
|
155
381
|
def replies=: (
|
|
@@ -170,6 +396,20 @@ module XTwitterScraper
|
|
|
170
396
|
|
|
171
397
|
def retweets_of_tweet_id=: (String) -> String
|
|
172
398
|
|
|
399
|
+
attr_reader safe: bool?
|
|
400
|
+
|
|
401
|
+
def safe=: (bool) -> bool
|
|
402
|
+
|
|
403
|
+
attr_reader scope: XTwitterScraper::Models::ExtractionRunParams::scope?
|
|
404
|
+
|
|
405
|
+
def scope=: (
|
|
406
|
+
XTwitterScraper::Models::ExtractionRunParams::scope
|
|
407
|
+
) -> XTwitterScraper::Models::ExtractionRunParams::scope
|
|
408
|
+
|
|
409
|
+
attr_reader search_queries: ::Array[String]?
|
|
410
|
+
|
|
411
|
+
def search_queries=: (::Array[String]) -> ::Array[String]
|
|
412
|
+
|
|
173
413
|
attr_reader search_query: String?
|
|
174
414
|
|
|
175
415
|
def search_query=: (String) -> String
|
|
@@ -178,14 +418,52 @@ module XTwitterScraper
|
|
|
178
418
|
|
|
179
419
|
def since_date=: (Date) -> Date
|
|
180
420
|
|
|
421
|
+
attr_reader since_id: String?
|
|
422
|
+
|
|
423
|
+
def since_id=: (String) -> String
|
|
424
|
+
|
|
425
|
+
attr_reader since_time: XTwitterScraper::Models::ExtractionRunParams::since_time?
|
|
426
|
+
|
|
427
|
+
def since_time=: (
|
|
428
|
+
XTwitterScraper::Models::ExtractionRunParams::since_time
|
|
429
|
+
) -> XTwitterScraper::Models::ExtractionRunParams::since_time
|
|
430
|
+
|
|
431
|
+
attr_reader sort: XTwitterScraper::Models::ExtractionRunParams::sort?
|
|
432
|
+
|
|
433
|
+
def sort=: (
|
|
434
|
+
XTwitterScraper::Models::ExtractionRunParams::sort
|
|
435
|
+
) -> XTwitterScraper::Models::ExtractionRunParams::sort
|
|
436
|
+
|
|
437
|
+
attr_reader source: String?
|
|
438
|
+
|
|
439
|
+
def source=: (String) -> String
|
|
440
|
+
|
|
441
|
+
attr_reader start_cursor: String?
|
|
442
|
+
|
|
443
|
+
def start_cursor=: (String) -> String
|
|
444
|
+
|
|
181
445
|
attr_reader target_community_id: String?
|
|
182
446
|
|
|
183
447
|
def target_community_id=: (String) -> String
|
|
184
448
|
|
|
449
|
+
attr_reader target_community_ids: ::Array[String]?
|
|
450
|
+
|
|
451
|
+
def target_community_ids=: (::Array[String]) -> ::Array[String]
|
|
452
|
+
|
|
185
453
|
attr_reader target_list_id: String?
|
|
186
454
|
|
|
187
455
|
def target_list_id=: (String) -> String
|
|
188
456
|
|
|
457
|
+
attr_reader target_list_ids: ::Array[String]?
|
|
458
|
+
|
|
459
|
+
def target_list_ids=: (::Array[String]) -> ::Array[String]
|
|
460
|
+
|
|
461
|
+
attr_reader targets: ::Array[XTwitterScraper::Models::ExtractionRunParams::target]?
|
|
462
|
+
|
|
463
|
+
def targets=: (
|
|
464
|
+
::Array[XTwitterScraper::Models::ExtractionRunParams::target]
|
|
465
|
+
) -> ::Array[XTwitterScraper::Models::ExtractionRunParams::target]
|
|
466
|
+
|
|
189
467
|
attr_reader target_space_id: String?
|
|
190
468
|
|
|
191
469
|
def target_space_id=: (String) -> String
|
|
@@ -194,10 +472,18 @@ module XTwitterScraper
|
|
|
194
472
|
|
|
195
473
|
def target_tweet_id=: (String) -> String
|
|
196
474
|
|
|
475
|
+
attr_reader target_tweet_ids: ::Array[String]?
|
|
476
|
+
|
|
477
|
+
def target_tweet_ids=: (::Array[String]) -> ::Array[String]
|
|
478
|
+
|
|
197
479
|
attr_reader target_username: String?
|
|
198
480
|
|
|
199
481
|
def target_username=: (String) -> String
|
|
200
482
|
|
|
483
|
+
attr_reader target_usernames: ::Array[String]?
|
|
484
|
+
|
|
485
|
+
def target_usernames=: (::Array[String]) -> ::Array[String]
|
|
486
|
+
|
|
201
487
|
attr_reader to_user: String?
|
|
202
488
|
|
|
203
489
|
def to_user=: (String) -> String
|
|
@@ -206,97 +492,235 @@ module XTwitterScraper
|
|
|
206
492
|
|
|
207
493
|
def until_date=: (Date) -> Date
|
|
208
494
|
|
|
495
|
+
attr_reader until_time: XTwitterScraper::Models::ExtractionRunParams::until_time?
|
|
496
|
+
|
|
497
|
+
def until_time=: (
|
|
498
|
+
XTwitterScraper::Models::ExtractionRunParams::until_time
|
|
499
|
+
) -> XTwitterScraper::Models::ExtractionRunParams::until_time
|
|
500
|
+
|
|
209
501
|
attr_reader url: String?
|
|
210
502
|
|
|
211
503
|
def url=: (String) -> String
|
|
212
504
|
|
|
505
|
+
attr_reader username_contains: String?
|
|
506
|
+
|
|
507
|
+
def username_contains=: (String) -> String
|
|
508
|
+
|
|
213
509
|
attr_reader verified_only: bool?
|
|
214
510
|
|
|
215
511
|
def verified_only=: (bool) -> bool
|
|
216
512
|
|
|
513
|
+
attr_reader verified_type: String?
|
|
514
|
+
|
|
515
|
+
def verified_type=: (String) -> String
|
|
516
|
+
|
|
517
|
+
attr_reader within: String?
|
|
518
|
+
|
|
519
|
+
def within=: (String) -> String
|
|
520
|
+
|
|
521
|
+
attr_reader within_time: String?
|
|
522
|
+
|
|
523
|
+
def within_time=: (String) -> String
|
|
524
|
+
|
|
217
525
|
def initialize: (
|
|
218
526
|
tool_type: XTwitterScraper::Models::ExtractionRunParams::tool_type,
|
|
527
|
+
?dry_run: bool,
|
|
219
528
|
?advanced_query: String,
|
|
220
529
|
?any_words: String,
|
|
530
|
+
?bio_contains: String,
|
|
531
|
+
?blue_verified_only: bool,
|
|
221
532
|
?bounding_box: String,
|
|
533
|
+
?card_name: String,
|
|
222
534
|
?cashtags: String,
|
|
535
|
+
?collection_strategy: XTwitterScraper::Models::ExtractionRunParams::collection_strategy,
|
|
223
536
|
?conversation_id: String,
|
|
537
|
+
?dedupe_across_targets: bool,
|
|
538
|
+
?dedupe_mode: XTwitterScraper::Models::ExtractionRunParams::dedupe_mode,
|
|
224
539
|
?exact_phrase: String,
|
|
540
|
+
?exclude_original_author: bool,
|
|
541
|
+
?exclude_source: String,
|
|
225
542
|
?exclude_words: String,
|
|
226
543
|
?from_user: String,
|
|
544
|
+
?geocode: String,
|
|
227
545
|
?hashtags: String,
|
|
546
|
+
?has_location: bool,
|
|
547
|
+
?has_media_only: bool,
|
|
548
|
+
?has_website: bool,
|
|
549
|
+
?include_original_post: bool,
|
|
550
|
+
?include_search_terms: bool,
|
|
551
|
+
?include_target_metadata: bool,
|
|
228
552
|
?in_reply_to_tweet_id: String,
|
|
229
553
|
?language: String,
|
|
230
554
|
?list_id: String,
|
|
555
|
+
?location_contains: String,
|
|
556
|
+
?max_depth: Integer,
|
|
557
|
+
?max_followers: Integer,
|
|
558
|
+
?max_following: Integer,
|
|
559
|
+
?max_id: String,
|
|
560
|
+
?max_items_per_target: Integer,
|
|
561
|
+
?max_likes: Integer,
|
|
562
|
+
?max_pages_per_target: Integer,
|
|
563
|
+
?max_posts: Integer,
|
|
564
|
+
?max_quotes: Integer,
|
|
565
|
+
?max_replies: Integer,
|
|
566
|
+
?max_retweets: Integer,
|
|
231
567
|
?media_type: XTwitterScraper::Models::ExtractionRunParams::media_type,
|
|
232
568
|
?mentioning: String,
|
|
569
|
+
?min_account_age_days: Integer,
|
|
570
|
+
?min_bookmarks: Integer,
|
|
233
571
|
?min_faves: Integer,
|
|
572
|
+
?min_followers: Integer,
|
|
573
|
+
?min_following: Integer,
|
|
574
|
+
?min_posts: Integer,
|
|
234
575
|
?min_quotes: Integer,
|
|
235
576
|
?min_replies: Integer,
|
|
236
577
|
?min_retweets: Integer,
|
|
578
|
+
?min_views: Integer,
|
|
579
|
+
?native_retweets: bool,
|
|
580
|
+
?near: String,
|
|
581
|
+
?news: bool,
|
|
582
|
+
?overlap_mode: bool,
|
|
237
583
|
?place: String,
|
|
238
584
|
?place_country: String,
|
|
239
585
|
?point_radius: String,
|
|
586
|
+
?query_type: XTwitterScraper::Models::ExtractionRunParams::query_type,
|
|
240
587
|
?quotes: XTwitterScraper::Models::ExtractionRunParams::quotes,
|
|
241
588
|
?quotes_of_tweet_id: String,
|
|
589
|
+
?relation_targets: ::Array[XTwitterScraper::ExtractionRunParams::RelationTarget],
|
|
242
590
|
?replies: XTwitterScraper::Models::ExtractionRunParams::replies,
|
|
243
591
|
?results_limit: Integer,
|
|
244
592
|
?retweets: XTwitterScraper::Models::ExtractionRunParams::retweets,
|
|
245
593
|
?retweets_of_tweet_id: String,
|
|
594
|
+
?safe: bool,
|
|
595
|
+
?scope: XTwitterScraper::Models::ExtractionRunParams::scope,
|
|
596
|
+
?search_queries: ::Array[String],
|
|
246
597
|
?search_query: String,
|
|
247
598
|
?since_date: Date,
|
|
599
|
+
?since_id: String,
|
|
600
|
+
?since_time: XTwitterScraper::Models::ExtractionRunParams::since_time,
|
|
601
|
+
?sort: XTwitterScraper::Models::ExtractionRunParams::sort,
|
|
602
|
+
?source: String,
|
|
603
|
+
?start_cursor: String,
|
|
248
604
|
?target_community_id: String,
|
|
605
|
+
?target_community_ids: ::Array[String],
|
|
249
606
|
?target_list_id: String,
|
|
607
|
+
?target_list_ids: ::Array[String],
|
|
608
|
+
?targets: ::Array[XTwitterScraper::Models::ExtractionRunParams::target],
|
|
250
609
|
?target_space_id: String,
|
|
251
610
|
?target_tweet_id: String,
|
|
611
|
+
?target_tweet_ids: ::Array[String],
|
|
252
612
|
?target_username: String,
|
|
613
|
+
?target_usernames: ::Array[String],
|
|
253
614
|
?to_user: String,
|
|
254
615
|
?until_date: Date,
|
|
616
|
+
?until_time: XTwitterScraper::Models::ExtractionRunParams::until_time,
|
|
255
617
|
?url: String,
|
|
618
|
+
?username_contains: String,
|
|
256
619
|
?verified_only: bool,
|
|
620
|
+
?verified_type: String,
|
|
621
|
+
?within: String,
|
|
622
|
+
?within_time: String,
|
|
257
623
|
?request_options: XTwitterScraper::request_opts
|
|
258
624
|
) -> void
|
|
259
625
|
|
|
260
626
|
def to_hash: -> {
|
|
261
627
|
tool_type: XTwitterScraper::Models::ExtractionRunParams::tool_type,
|
|
628
|
+
dry_run: bool,
|
|
262
629
|
advanced_query: String,
|
|
263
630
|
any_words: String,
|
|
631
|
+
bio_contains: String,
|
|
632
|
+
blue_verified_only: bool,
|
|
264
633
|
bounding_box: String,
|
|
634
|
+
card_name: String,
|
|
265
635
|
cashtags: String,
|
|
636
|
+
collection_strategy: XTwitterScraper::Models::ExtractionRunParams::collection_strategy,
|
|
266
637
|
conversation_id: String,
|
|
638
|
+
dedupe_across_targets: bool,
|
|
639
|
+
dedupe_mode: XTwitterScraper::Models::ExtractionRunParams::dedupe_mode,
|
|
267
640
|
exact_phrase: String,
|
|
641
|
+
exclude_original_author: bool,
|
|
642
|
+
exclude_source: String,
|
|
268
643
|
exclude_words: String,
|
|
269
644
|
from_user: String,
|
|
645
|
+
geocode: String,
|
|
270
646
|
hashtags: String,
|
|
647
|
+
has_location: bool,
|
|
648
|
+
has_media_only: bool,
|
|
649
|
+
has_website: bool,
|
|
650
|
+
include_original_post: bool,
|
|
651
|
+
include_search_terms: bool,
|
|
652
|
+
include_target_metadata: bool,
|
|
271
653
|
in_reply_to_tweet_id: String,
|
|
272
654
|
language: String,
|
|
273
655
|
list_id: String,
|
|
656
|
+
location_contains: String,
|
|
657
|
+
max_depth: Integer,
|
|
658
|
+
max_followers: Integer,
|
|
659
|
+
max_following: Integer,
|
|
660
|
+
max_id: String,
|
|
661
|
+
max_items_per_target: Integer,
|
|
662
|
+
max_likes: Integer,
|
|
663
|
+
max_pages_per_target: Integer,
|
|
664
|
+
max_posts: Integer,
|
|
665
|
+
max_quotes: Integer,
|
|
666
|
+
max_replies: Integer,
|
|
667
|
+
max_retweets: Integer,
|
|
274
668
|
media_type: XTwitterScraper::Models::ExtractionRunParams::media_type,
|
|
275
669
|
mentioning: String,
|
|
670
|
+
min_account_age_days: Integer,
|
|
671
|
+
min_bookmarks: Integer,
|
|
276
672
|
min_faves: Integer,
|
|
673
|
+
min_followers: Integer,
|
|
674
|
+
min_following: Integer,
|
|
675
|
+
min_posts: Integer,
|
|
277
676
|
min_quotes: Integer,
|
|
278
677
|
min_replies: Integer,
|
|
279
678
|
min_retweets: Integer,
|
|
679
|
+
min_views: Integer,
|
|
680
|
+
native_retweets: bool,
|
|
681
|
+
near: String,
|
|
682
|
+
news: bool,
|
|
683
|
+
overlap_mode: bool,
|
|
280
684
|
place: String,
|
|
281
685
|
place_country: String,
|
|
282
686
|
point_radius: String,
|
|
687
|
+
query_type: XTwitterScraper::Models::ExtractionRunParams::query_type,
|
|
283
688
|
quotes: XTwitterScraper::Models::ExtractionRunParams::quotes,
|
|
284
689
|
quotes_of_tweet_id: String,
|
|
690
|
+
relation_targets: ::Array[XTwitterScraper::ExtractionRunParams::RelationTarget],
|
|
285
691
|
replies: XTwitterScraper::Models::ExtractionRunParams::replies,
|
|
286
692
|
results_limit: Integer,
|
|
287
693
|
retweets: XTwitterScraper::Models::ExtractionRunParams::retweets,
|
|
288
694
|
retweets_of_tweet_id: String,
|
|
695
|
+
safe: bool,
|
|
696
|
+
scope: XTwitterScraper::Models::ExtractionRunParams::scope,
|
|
697
|
+
search_queries: ::Array[String],
|
|
289
698
|
search_query: String,
|
|
290
699
|
since_date: Date,
|
|
700
|
+
since_id: String,
|
|
701
|
+
since_time: XTwitterScraper::Models::ExtractionRunParams::since_time,
|
|
702
|
+
sort: XTwitterScraper::Models::ExtractionRunParams::sort,
|
|
703
|
+
source: String,
|
|
704
|
+
start_cursor: String,
|
|
291
705
|
target_community_id: String,
|
|
706
|
+
target_community_ids: ::Array[String],
|
|
292
707
|
target_list_id: String,
|
|
708
|
+
target_list_ids: ::Array[String],
|
|
709
|
+
targets: ::Array[XTwitterScraper::Models::ExtractionRunParams::target],
|
|
293
710
|
target_space_id: String,
|
|
294
711
|
target_tweet_id: String,
|
|
712
|
+
target_tweet_ids: ::Array[String],
|
|
295
713
|
target_username: String,
|
|
714
|
+
target_usernames: ::Array[String],
|
|
296
715
|
to_user: String,
|
|
297
716
|
until_date: Date,
|
|
717
|
+
until_time: XTwitterScraper::Models::ExtractionRunParams::until_time,
|
|
298
718
|
url: String,
|
|
719
|
+
username_contains: String,
|
|
299
720
|
verified_only: bool,
|
|
721
|
+
verified_type: String,
|
|
722
|
+
within: String,
|
|
723
|
+
within_time: String,
|
|
300
724
|
request_options: XTwitterScraper::RequestOptions
|
|
301
725
|
}
|
|
302
726
|
|
|
@@ -355,6 +779,32 @@ module XTwitterScraper
|
|
|
355
779
|
def self?.values: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::tool_type]
|
|
356
780
|
end
|
|
357
781
|
|
|
782
|
+
type collection_strategy = :auto | :complete | :direct | :search | :thread
|
|
783
|
+
|
|
784
|
+
module CollectionStrategy
|
|
785
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
786
|
+
|
|
787
|
+
AUTO: :auto
|
|
788
|
+
COMPLETE: :complete
|
|
789
|
+
DIRECT: :direct
|
|
790
|
+
SEARCH: :search
|
|
791
|
+
THREAD: :thread
|
|
792
|
+
|
|
793
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::collection_strategy]
|
|
794
|
+
end
|
|
795
|
+
|
|
796
|
+
type dedupe_mode = :none | :first | :merge
|
|
797
|
+
|
|
798
|
+
module DedupeMode
|
|
799
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
800
|
+
|
|
801
|
+
NONE: :none
|
|
802
|
+
FIRST: :first
|
|
803
|
+
MERGE: :merge
|
|
804
|
+
|
|
805
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::dedupe_mode]
|
|
806
|
+
end
|
|
807
|
+
|
|
358
808
|
type media_type = :images | :videos | :gifs | :media | :links | :none
|
|
359
809
|
|
|
360
810
|
module MediaType
|
|
@@ -370,6 +820,18 @@ module XTwitterScraper
|
|
|
370
820
|
def self?.values: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::media_type]
|
|
371
821
|
end
|
|
372
822
|
|
|
823
|
+
type query_type = :Latest | :Top | :Both
|
|
824
|
+
|
|
825
|
+
module QueryType
|
|
826
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
827
|
+
|
|
828
|
+
LATEST: :Latest
|
|
829
|
+
TOP: :Top
|
|
830
|
+
BOTH: :Both
|
|
831
|
+
|
|
832
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::query_type]
|
|
833
|
+
end
|
|
834
|
+
|
|
373
835
|
type quotes = :include | :exclude | :only
|
|
374
836
|
|
|
375
837
|
module Quotes
|
|
@@ -382,6 +844,49 @@ module XTwitterScraper
|
|
|
382
844
|
def self?.values: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::quotes]
|
|
383
845
|
end
|
|
384
846
|
|
|
847
|
+
type relation_target =
|
|
848
|
+
{
|
|
849
|
+
relation: XTwitterScraper::Models::ExtractionRunParams::RelationTarget::relation,
|
|
850
|
+
value: String
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
class RelationTarget < XTwitterScraper::Internal::Type::BaseModel
|
|
854
|
+
attr_accessor relation: XTwitterScraper::Models::ExtractionRunParams::RelationTarget::relation
|
|
855
|
+
|
|
856
|
+
attr_accessor value: String
|
|
857
|
+
|
|
858
|
+
def initialize: (
|
|
859
|
+
relation: XTwitterScraper::Models::ExtractionRunParams::RelationTarget::relation,
|
|
860
|
+
value: String
|
|
861
|
+
) -> void
|
|
862
|
+
|
|
863
|
+
def to_hash: -> {
|
|
864
|
+
relation: XTwitterScraper::Models::ExtractionRunParams::RelationTarget::relation,
|
|
865
|
+
value: String
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
type relation =
|
|
869
|
+
:community_members
|
|
870
|
+
| :followers
|
|
871
|
+
| :following
|
|
872
|
+
| :list_followers
|
|
873
|
+
| :list_members
|
|
874
|
+
| :verified_followers
|
|
875
|
+
|
|
876
|
+
module Relation
|
|
877
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
878
|
+
|
|
879
|
+
COMMUNITY_MEMBERS: :community_members
|
|
880
|
+
FOLLOWERS: :followers
|
|
881
|
+
FOLLOWING: :following
|
|
882
|
+
LIST_FOLLOWERS: :list_followers
|
|
883
|
+
LIST_MEMBERS: :list_members
|
|
884
|
+
VERIFIED_FOLLOWERS: :verified_followers
|
|
885
|
+
|
|
886
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::RelationTarget::relation]
|
|
887
|
+
end
|
|
888
|
+
end
|
|
889
|
+
|
|
385
890
|
type replies = :include | :exclude | :only
|
|
386
891
|
|
|
387
892
|
module Replies
|
|
@@ -405,6 +910,111 @@ module XTwitterScraper
|
|
|
405
910
|
|
|
406
911
|
def self?.values: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::retweets]
|
|
407
912
|
end
|
|
913
|
+
|
|
914
|
+
type scope = :all | :direct | :nested
|
|
915
|
+
|
|
916
|
+
module Scope
|
|
917
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
918
|
+
|
|
919
|
+
ALL: :all
|
|
920
|
+
DIRECT: :direct
|
|
921
|
+
NESTED: :nested
|
|
922
|
+
|
|
923
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::scope]
|
|
924
|
+
end
|
|
925
|
+
|
|
926
|
+
type since_time = Time | Integer
|
|
927
|
+
|
|
928
|
+
module SinceTime
|
|
929
|
+
extend XTwitterScraper::Internal::Type::Union
|
|
930
|
+
|
|
931
|
+
def self?.variants: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::since_time]
|
|
932
|
+
end
|
|
933
|
+
|
|
934
|
+
type sort = :relevance | :latest | :oldest | :likes
|
|
935
|
+
|
|
936
|
+
module Sort
|
|
937
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
938
|
+
|
|
939
|
+
RELEVANCE: :relevance
|
|
940
|
+
LATEST: :latest
|
|
941
|
+
OLDEST: :oldest
|
|
942
|
+
LIKES: :likes
|
|
943
|
+
|
|
944
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::sort]
|
|
945
|
+
end
|
|
946
|
+
|
|
947
|
+
type target =
|
|
948
|
+
String | XTwitterScraper::ExtractionRunParams::Target::UnionMember1
|
|
949
|
+
|
|
950
|
+
module Target
|
|
951
|
+
extend XTwitterScraper::Internal::Type::Union
|
|
952
|
+
|
|
953
|
+
type union_member1 =
|
|
954
|
+
{
|
|
955
|
+
kind: XTwitterScraper::Models::ExtractionRunParams::Target::UnionMember1::kind,
|
|
956
|
+
value: String
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
class UnionMember1 < XTwitterScraper::Internal::Type::BaseModel
|
|
960
|
+
attr_accessor kind: XTwitterScraper::Models::ExtractionRunParams::Target::UnionMember1::kind
|
|
961
|
+
|
|
962
|
+
attr_accessor value: String
|
|
963
|
+
|
|
964
|
+
def initialize: (
|
|
965
|
+
kind: XTwitterScraper::Models::ExtractionRunParams::Target::UnionMember1::kind,
|
|
966
|
+
value: String
|
|
967
|
+
) -> void
|
|
968
|
+
|
|
969
|
+
def to_hash: -> {
|
|
970
|
+
kind: XTwitterScraper::Models::ExtractionRunParams::Target::UnionMember1::kind,
|
|
971
|
+
value: String
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
type kind =
|
|
975
|
+
:favoriters
|
|
976
|
+
| :list
|
|
977
|
+
| :profile
|
|
978
|
+
| :profile_likes
|
|
979
|
+
| :profile_media
|
|
980
|
+
| :profile_replies
|
|
981
|
+
| :quotes
|
|
982
|
+
| :replies
|
|
983
|
+
| :retweeters
|
|
984
|
+
| :search
|
|
985
|
+
| :thread
|
|
986
|
+
| :tweet
|
|
987
|
+
|
|
988
|
+
module Kind
|
|
989
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
990
|
+
|
|
991
|
+
FAVORITERS: :favoriters
|
|
992
|
+
LIST: :list
|
|
993
|
+
PROFILE: :profile
|
|
994
|
+
PROFILE_LIKES: :profile_likes
|
|
995
|
+
PROFILE_MEDIA: :profile_media
|
|
996
|
+
PROFILE_REPLIES: :profile_replies
|
|
997
|
+
QUOTES: :quotes
|
|
998
|
+
REPLIES: :replies
|
|
999
|
+
RETWEETERS: :retweeters
|
|
1000
|
+
SEARCH: :search
|
|
1001
|
+
THREAD: :thread
|
|
1002
|
+
TWEET: :tweet
|
|
1003
|
+
|
|
1004
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::Target::UnionMember1::kind]
|
|
1005
|
+
end
|
|
1006
|
+
end
|
|
1007
|
+
|
|
1008
|
+
def self?.variants: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::target]
|
|
1009
|
+
end
|
|
1010
|
+
|
|
1011
|
+
type until_time = Time | Integer
|
|
1012
|
+
|
|
1013
|
+
module UntilTime
|
|
1014
|
+
extend XTwitterScraper::Internal::Type::Union
|
|
1015
|
+
|
|
1016
|
+
def self?.variants: -> ::Array[XTwitterScraper::Models::ExtractionRunParams::until_time]
|
|
1017
|
+
end
|
|
408
1018
|
end
|
|
409
1019
|
end
|
|
410
1020
|
end
|