Class: XTwitterScraper::Models::X::TweetSearchParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- XTwitterScraper::Models::X::TweetSearchParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/x_twitter_scraper/models/x/tweet_search_params.rb,
sig/x_twitter_scraper/models/x/tweet_search_params.rbs
Overview
Defined Under Namespace
Modules: MediaType, QueryType, Quotes, Replies, Retweets
Constant Summary
Constants included from Internal::Type::RequestParameters
Internal::Type::RequestParameters::XTwitterScraper
Instance Attribute Summary collapse
-
#advanced_query ⇒ String?
Raw advanced search query appended as-is.
-
#any_words ⇒ String?
Words or quoted phrases where any one can match.
-
#bounding_box ⇒ String?
Geo bounding box, e.g.
-
#cashtags ⇒ String?
Cashtags separated by spaces, commas, or lines.
-
#conversation_id ⇒ String?
Conversation ID filter.
-
#cursor ⇒ String?
Pagination cursor from previous response.
-
#exact_phrase ⇒ String?
Exact phrase to match.
-
#exclude_words ⇒ String?
Words or quoted phrases to exclude.
-
#from_user ⇒ String?
Filter by author username.
-
#hashtags ⇒ String?
Hashtags separated by spaces, commas, or lines.
-
#in_reply_to_tweet_id ⇒ String?
Only replies to this tweet ID.
-
#language ⇒ String?
Language code filter, e.g.
-
#limit ⇒ Integer?
Max tweets to return (server paginates internally).
-
#list_id ⇒ String?
Search within a list ID.
-
#media_type ⇒ Symbol, ...
Filter by media type.
-
#mentioning ⇒ String?
Filter tweets mentioning a username.
-
#min_faves ⇒ Integer?
Minimum likes threshold.
-
#min_quotes ⇒ Integer?
Minimum quote count threshold.
-
#min_replies ⇒ Integer?
Minimum replies threshold.
-
#min_retweets ⇒ Integer?
Minimum retweets threshold.
-
#place ⇒ String?
Search within a place ID.
-
#place_country ⇒ String?
Search within a country code.
-
#point_radius ⇒ String?
Geo point radius, e.g.
-
#q ⇒ String
Search query (keywords,.
-
#query_type ⇒ Symbol, ...
Sort order - Latest (chronological) or Top (engagement-ranked).
-
#quotes ⇒ Symbol, ...
Quote mode.
-
#quotes_of_tweet_id ⇒ String?
Only quotes of this tweet ID.
-
#replies ⇒ Symbol, ...
Reply mode.
-
#retweets ⇒ Symbol, ...
Retweet mode.
-
#retweets_of_tweet_id ⇒ String?
Only retweets of this tweet ID.
-
#since_date ⇒ Date?
Start date in YYYY-MM-DD format.
-
#since_time ⇒ String?
ISO 8601 timestamp - only return tweets after this time.
-
#to_user ⇒ String?
Filter replies sent to a username.
-
#until_date ⇒ Date?
End date in YYYY-MM-DD format.
-
#until_time ⇒ String?
ISO 8601 timestamp - only return tweets before this time.
-
#url ⇒ String?
URL substring or domain filter.
-
#verified_only ⇒ Boolean?
Only return tweets from verified authors.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(q:, advanced_query: nil, any_words: nil, bounding_box: nil, cashtags: nil, conversation_id: nil, cursor: nil, exact_phrase: nil, exclude_words: nil, from_user: nil, hashtags: nil, in_reply_to_tweet_id: nil, language: nil, limit: nil, list_id: nil, media_type: nil, mentioning: nil, min_faves: nil, min_quotes: nil, min_replies: nil, min_retweets: nil, place: nil, place_country: nil, point_radius: nil, query_type: nil, quotes: nil, quotes_of_tweet_id: nil, replies: nil, retweets: nil, retweets_of_tweet_id: nil, since_date: nil, since_time: nil, to_user: nil, until_date: nil, until_time: nil, url: nil, verified_only: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see TweetSearchParams for more details.
- #to_hash ⇒ {
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(q:, advanced_query: nil, any_words: nil, bounding_box: nil, cashtags: nil, conversation_id: nil, cursor: nil, exact_phrase: nil, exclude_words: nil, from_user: nil, hashtags: nil, in_reply_to_tweet_id: nil, language: nil, limit: nil, list_id: nil, media_type: nil, mentioning: nil, min_faves: nil, min_quotes: nil, min_replies: nil, min_retweets: nil, place: nil, place_country: nil, point_radius: nil, query_type: nil, quotes: nil, quotes_of_tweet_id: nil, replies: nil, retweets: nil, retweets_of_tweet_id: nil, since_date: nil, since_time: nil, to_user: nil, until_date: nil, until_time: nil, url: nil, verified_only: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see XTwitterScraper::Models::X::TweetSearchParams for more details.
|
|
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 241
|
Instance Attribute Details
#advanced_query ⇒ String?
Raw advanced search query appended as-is.
25 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 25 optional :advanced_query, String |
#any_words ⇒ String?
Words or quoted phrases where any one can match. Separate with spaces, commas, or lines.
32 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 32 optional :any_words, String |
#bounding_box ⇒ String?
Geo bounding box, e.g. -74.1 40.6 -73.9 40.8.
38 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 38 optional :bounding_box, String |
#cashtags ⇒ String?
Cashtags separated by spaces, commas, or lines.
44 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 44 optional :cashtags, String |
#conversation_id ⇒ String?
Conversation ID filter.
50 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 50 optional :conversation_id, String |
#cursor ⇒ String?
Pagination cursor from previous response
56 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 56 optional :cursor, String |
#exact_phrase ⇒ String?
Exact phrase to match.
62 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 62 optional :exact_phrase, String |
#exclude_words ⇒ String?
Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
68 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 68 optional :exclude_words, String |
#from_user ⇒ String?
Filter by author username.
74 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 74 optional :from_user, String |
#hashtags ⇒ String?
Hashtags separated by spaces, commas, or lines.
80 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 80 optional :hashtags, String |
#in_reply_to_tweet_id ⇒ String?
Only replies to this tweet ID.
86 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 86 optional :in_reply_to_tweet_id, String |
#language ⇒ String?
Language code filter, e.g. en or tr.
92 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 92 optional :language, String |
#limit ⇒ Integer?
Max tweets to return (server paginates internally). Omit for single page (~20). This is an upper bound for paid authenticated calls: remaining credits can reduce the returned page size, and zero affordable results returns 402 insufficient_credits.
101 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 101 optional :limit, Integer |
#list_id ⇒ String?
Search within a list ID.
107 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 107 optional :list_id, String |
#media_type ⇒ Symbol, ...
Filter by media type.
113 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 113 optional :media_type, enum: -> { XTwitterScraper::X::TweetSearchParams::MediaType } |
#mentioning ⇒ String?
Filter tweets mentioning a username.
119 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 119 optional :mentioning, String |
#min_faves ⇒ Integer?
Minimum likes threshold.
125 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 125 optional :min_faves, Integer |
#min_quotes ⇒ Integer?
Minimum quote count threshold.
131 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 131 optional :min_quotes, Integer |
#min_replies ⇒ Integer?
Minimum replies threshold.
137 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 137 optional :min_replies, Integer |
#min_retweets ⇒ Integer?
Minimum retweets threshold.
143 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 143 optional :min_retweets, Integer |
#place ⇒ String?
Search within a place ID.
149 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 149 optional :place, String |
#place_country ⇒ String?
Search within a country code.
155 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 155 optional :place_country, String |
#point_radius ⇒ String?
Geo point radius, e.g. -73.99 40.73 25mi.
161 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 161 optional :point_radius, String |
#q ⇒ String
Search query (keywords,
19 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 19 required :q, String |
#query_type ⇒ Symbol, ...
Sort order - Latest (chronological) or Top (engagement-ranked)
167 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 167 optional :query_type, enum: -> { XTwitterScraper::X::TweetSearchParams::QueryType } |
#quotes ⇒ Symbol, ...
Quote mode.
173 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 173 optional :quotes, enum: -> { XTwitterScraper::X::TweetSearchParams::Quotes } |
#quotes_of_tweet_id ⇒ String?
Only quotes of this tweet ID.
179 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 179 optional :quotes_of_tweet_id, String |
#replies ⇒ Symbol, ...
Reply mode.
185 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 185 optional :replies, enum: -> { XTwitterScraper::X::TweetSearchParams::Replies } |
#retweets ⇒ Symbol, ...
Retweet mode.
191 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 191 optional :retweets, enum: -> { XTwitterScraper::X::TweetSearchParams::Retweets } |
#retweets_of_tweet_id ⇒ String?
Only retweets of this tweet ID.
197 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 197 optional :retweets_of_tweet_id, String |
#since_date ⇒ Date?
Start date in YYYY-MM-DD format.
203 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 203 optional :since_date, Date |
#since_time ⇒ String?
ISO 8601 timestamp - only return tweets after this time
209 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 209 optional :since_time, String |
#to_user ⇒ String?
Filter replies sent to a username.
215 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 215 optional :to_user, String |
#until_date ⇒ Date?
End date in YYYY-MM-DD format.
221 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 221 optional :until_date, Date |
#until_time ⇒ String?
ISO 8601 timestamp - only return tweets before this time
227 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 227 optional :until_time, String |
#url ⇒ String?
URL substring or domain filter.
233 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 233 optional :url, String |
#verified_only ⇒ Boolean?
Only return tweets from verified authors.
239 |
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 239 optional :verified_only, XTwitterScraper::Internal::Type::Boolean |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/x_twitter_scraper/models/x/tweet_search_params.rb', line 332
|
Instance Method Details
#to_hash ⇒ {
251 |
# File 'sig/x_twitter_scraper/models/x/tweet_search_params.rbs', line 251
def to_hash: -> {
|