Class: XTwitterScraper::Models::UserProfile
Defined Under Namespace
Classes: AffiliatesHighlightedLabel, HighlightsInfo, IdentityVerification
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(can_highlight_tweets: nil, highlighted_tweets: nil) ⇒ Object
Profile highlight availability and count metadata.
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 265
|
Instance Attribute Details
Organization affiliation label shown on an X profile.
29
30
31
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 29
optional :affiliates_highlighted_label,
-> { XTwitterScraper::UserProfile::AffiliatesHighlightedLabel },
api_name: :affiliatesHighlightedLabel
|
#automated_by ⇒ String?
36
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 36
optional :automated_by, String, api_name: :automatedBy
|
#business_account_affiliates_count ⇒ Integer?
41
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 41
optional :business_account_affiliates_count, Integer, api_name: :businessAccountAffiliatesCount
|
Community role when returned by community member reads
47
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 47
optional :community_role, String, api_name: :communityRole
|
#cover_picture ⇒ String?
52
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 52
optional :cover_picture, String, api_name: :coverPicture
|
#created_at ⇒ String?
57
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 57
optional :created_at, String, api_name: :createdAt
|
#creator_subscriptions_count ⇒ Integer?
62
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 62
optional :creator_subscriptions_count, Integer, api_name: :creatorSubscriptionsCount
|
#description ⇒ String?
67
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 67
optional :description, String
|
#favourites_count ⇒ Integer?
72
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 72
optional :favourites_count, Integer, api_name: :favouritesCount
|
#followers ⇒ Integer?
77
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 77
optional :followers, Integer
|
#following ⇒ Integer?
82
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 82
optional :following, Integer
|
#has_custom_timelines ⇒ Boolean?
87
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 87
optional :has_custom_timelines, XTwitterScraper::Internal::Type::Boolean, api_name: :hasCustomTimelines
|
#has_graduated_access ⇒ Boolean?
92
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 92
optional :has_graduated_access, XTwitterScraper::Internal::Type::Boolean, api_name: :hasGraduatedAccess
|
#has_hidden_subscriptions_on_profile ⇒ Boolean?
97
98
99
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 97
optional :has_hidden_subscriptions_on_profile,
XTwitterScraper::Internal::Type::Boolean,
api_name: :hasHiddenSubscriptionsOnProfile
|
Profile highlight availability and count metadata.
105
106
107
108
109
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 105
optional :highlights_info,
-> {
XTwitterScraper::UserProfile::HighlightsInfo
},
api_name: :highlightsInfo
|
#id ⇒ String
13
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 13
required :id, String
|
Identity verification metadata displayed by X.
115
116
117
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 115
optional :identity_verification,
-> { XTwitterScraper::UserProfile::IdentityVerification },
api_name: :identityVerification
|
#is_automated ⇒ Boolean?
122
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 122
optional :is_automated, XTwitterScraper::Internal::Type::Boolean, api_name: :isAutomated
|
#is_blue_verified ⇒ Boolean?
Whether X shows a blue verification badge
128
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 128
optional :is_blue_verified, XTwitterScraper::Internal::Type::Boolean, api_name: :isBlueVerified
|
#is_profile_translatable ⇒ Boolean?
133
134
135
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 133
optional :is_profile_translatable,
XTwitterScraper::Internal::Type::Boolean,
api_name: :isProfileTranslatable
|
#is_translator ⇒ Boolean?
140
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 140
optional :is_translator, XTwitterScraper::Internal::Type::Boolean, api_name: :isTranslator
|
#is_verified ⇒ Boolean?
Whether X marks the profile as verified
146
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 146
optional :is_verified, XTwitterScraper::Internal::Type::Boolean, api_name: :isVerified
|
#location ⇒ String?
151
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 151
optional :location, String
|
156
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 156
optional :media_count, Integer, api_name: :mediaCount
|
#name ⇒ String
18
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 18
required :name, String
|
161
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 161
optional :parody_commentary_fan_label, String, api_name: :parodyCommentaryFanLabel
|
166
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 166
optional :pinned_tweet_ids, XTwitterScraper::Internal::Type::ArrayOf[String], api_name: :pinnedTweetIds
|
#possibly_sensitive ⇒ Boolean?
171
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 171
optional :possibly_sensitive, XTwitterScraper::Internal::Type::Boolean, api_name: :possiblySensitive
|
#profile_banner_url ⇒ String?
Original X profile banner field when available
183
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 183
optional :profile_banner_url, String, api_name: :profileBannerUrl
|
#profile_bio ⇒ Hash{Symbol=>Object}?
Structured profile bio with entity annotations
177
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 177
optional :profile_bio, XTwitterScraper::Internal::Type::HashOf[XTwitterScraper::Internal::Type::Unknown]
|
#profile_description_language ⇒ String?
188
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 188
optional :profile_description_language, String, api_name: :profileDescriptionLanguage
|
#profile_image_shape ⇒ String?
193
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 193
optional :profile_image_shape, String, api_name: :profileImageShape
|
#profile_interstitial_type ⇒ String?
198
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 198
optional :profile_interstitial_type, String, api_name: :profileInterstitialType
|
#profile_picture ⇒ String?
203
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 203
optional :profile_picture, String, api_name: :profilePicture
|
#profile_sort_enabled ⇒ Boolean?
208
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 208
optional :profile_sort_enabled, XTwitterScraper::Internal::Type::Boolean, api_name: :profileSortEnabled
|
#profile_translator_type ⇒ String?
213
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 213
optional :profile_translator_type, String, api_name: :profileTranslatorType
|
#protected ⇒ Boolean?
Whether the profile protects its posts
219
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 219
optional :protected, XTwitterScraper::Internal::Type::Boolean
|
#statuses_count ⇒ Integer?
224
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 224
optional :statuses_count, Integer, api_name: :statusesCount
|
#super_follow_eligible ⇒ Boolean?
229
230
231
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 229
optional :super_follow_eligible,
XTwitterScraper::Internal::Type::Boolean,
api_name: :superFollowEligible
|
#unavailable ⇒ Boolean?
236
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 236
optional :unavailable, XTwitterScraper::Internal::Type::Boolean
|
#unavailable_reason ⇒ String?
241
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 241
optional :unavailable_reason, String, api_name: :unavailableReason
|
#url ⇒ String?
246
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 246
optional :url, String
|
#username ⇒ String
23
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 23
required :username, String
|
#verified ⇒ Boolean?
251
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 251
optional :verified, XTwitterScraper::Internal::Type::Boolean
|
#verified_type ⇒ String?
256
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 256
optional :verified_type, String, api_name: :verifiedType
|
#withheld_in_countries ⇒ Array<String>?
261
262
263
|
# File 'lib/x_twitter_scraper/models/user_profile.rb', line 261
optional :withheld_in_countries,
XTwitterScraper::Internal::Type::ArrayOf[String],
api_name: :withheldInCountries
|
Instance Method Details
#to_hash ⇒ ::Hash[Symbol, top]
243
|
# File 'sig/x_twitter_scraper/models/user_profile.rbs', line 243
def to_hash: -> ::Hash[Symbol, top]
|