TwDataTypes
This page contains all the Data Class
- PROXY_TYPE_SOCKS4 = 1
- PROXY_TYPE_SOCKS5 = 2
- PROXY_TYPE_HTTP = 3
Proxy
UserTweets
- class UserTweets
Bases :
BaseGeneratorClass
- Reference:
tweety.types.usertweet.UserTweets
- Attributes:
- tweets: list[Tweet | SelfThread]
List of User Tweets
UserCommunities
UserHighlights
UserMedia
- class UserMedia
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.usertweet.UserMedia
SelfTimeline
- class SelfTimeline
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.usertweet.SelfTimeline
TweetHistory
- class TweetHistory
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.usertweet.TweetHistory
ScheduledTweets
- class ScheduledTweets
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.usertweet.ScheduledTweets
- Attributes:
- tweets: list[ScheduledTweet]
List of Scheduled Tweets
TweetComments
- class TweetComments
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.usertweet.TweetComments
- Attributes:
- tweets: list[ConversationThread]
List of Tweet ConversationThreads
Got hidden comments or not
Search
Reference Search.
- class Search
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.search.Search
- Attributes:
- results: list[Tweet | SelfThread | User | List]
List of Results
TopicTweets
- class TopicTweets
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.topic.TopicTweets
TweetLikes
TweetRetweets
Mention
Bookmarks
CommunityTweets
- class CommunityTweets
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.community.CommunityTweets
- Attributes:
- tweets: list[Tweet | SelfThread]
List of Tweets
CommunityMembers
Lists
- class Lists
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.lists.Lists
ListMembers
- class ListMembers
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.lists.ListMembers
ListTweets
- class ListTweets
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.lists.ListTweets
- Attributes:
- tweets: list[Tweet | SelfThread]
Tweets of the List
UserFollowers
- class UserFollowers
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.follow.UserFollowers
UserFollowings
- class UserFollowings
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.follow.UserFollowings
UserSubscribers
- class UserSubscribers
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.follow.UserSubscribers
MutualFollowers
- class MutualFollowers
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.follow.MutualFollowers
BlockedUsers
- class BlockedUsers
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.follow.BlockedUsers
TweetNotifications
- class TweetNotifications
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.notification.TweetNotifications
Inbox
- class Inbox
Bases :
dict
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.inbox.Inbox
- Attributes:
- conversations: list[Conversation]
List of User Conversation
SelfThread
ConversationThread
Tweet
- class Tweet
Bases :
dict
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.twDataTypes.Tweet
- Attributes:
-
- created_on: datetime.datetime
DateTime at which the Tweet was created
- date: datetime.datetime
DateTime at which the Tweet was created
- retweeted_tweet: Tweet
Retweeted Tweet if
is_retweet
isTrue
- edit_control: EditControl | None
Edit Control of the Tweet
Grok Conversation Shared on Tweet
- comments: list[ConversationThread]
List of Comments sent in response to this Tweet
- Methods:
- async get_comments(pages=1, wait_time=2, cursor=None)
- async iter_comments(pages=1, wait_time=2, cursor=None)
Get the comments / replies posted in response to this tweet
- Arguments:
- async translate()
Translate the Tweet
- Return: TweetTranslate
Media
Stream
MediaSize
ShortUser
Trends
Card
- class Card
Bases :
dict
Note
This Object is JSON Serializable
- Reference:
tweety.types.twDataTypes.Card
- Attributes:
-
- end_time: datetime.datetime
End Time of the Pool
- last_updated_time: datetime.datetime
Last Updated Time of the Pool
Choice
Place
Coordinates
User
- class User
Bases :
dict
Note
This Object is JSON Serializable
- Reference:
tweety.types.twDataTypes.User
- Attributes:
-
- created_at: datetime.datetime
DateTime at which the user was created
- date: datetime.datetime
DateTime at which the Tweet was created
- birth_date: datetime.datetime
Birthday of User
Conversation
- class Conversation
Bases :
dict
Note
This Object is JSON Serializable
- Reference:
tweety.types.inbox.Conversation
- Attributes:
- Methods:
- async get_all_messages(wait_time: int = 2, cursor: int = 0, till_date: datetime.datetime = None, count: int = None)
- async iter_all_messages(wait_time: int = 2, cursor: int = 0, till_date: datetime.datetime = None, count: int = None)
Force get all the messages of the conversation (
iter
for Generator)- Arguments:
-
- till_date: datetime.datetime
Get Messages till that date
- async send_message(text)
Send Message in this conversation
- Arguments:
- async get_page(cursor: str, till_date: datetime.datetime)
Get a specific page of messages in the conversation
- Arguments:
-
- till_date: datetime.datetime
Date till which to get messages
- async get_next_page(till_date: datetime.datetime)
Get a next page of messages in the conversation
- Arguments:
- till_date: datetime.datetime
Date till which to get messages
MessageParticipantUpdate
MessageNameUpdate
MessageConversationCreated
Message
- class Message
Bases :
dict
Note
This Object is JSON Serializable
- reference:
tweety.types.inbox.Message
- Attributes:
-
- time: datetime.datetime
Time at which the message was sent
Tweet Quoted in the message
- Methods:
- async reply(text, file=None, audio_only=False, quote_tweet_id=None)
Reply to this message
- Arguments:
NewMessage
- class NewMessage
Bases :
dict
Note
This Object is JSON Serializable
- Reference:
tweety.events.newmessage.NewMessageUpdate.NewMessage
- Attributes:
-
- time: datetime.datetime
Time at which the message was sent
- conversation: Conversation
Conversation object
Community
- class Community
Bases :
dict
Note
This Object is JSON Serializable
- Reference:
tweety.types.twDataTypes.Community
- Attributes:
-
- created_at: datetime.datetime
DateTime at which the Community was created
- date: datetime.datetime
DateTime at which the Tweet was created
Symbol
Hashtag
URL
RichText
RichTag
Pool
- class Pool
Bases :
dict
Note
This Object is JSON Serializable
- Reference:
tweety.types.twDataTypes.Pool
- Attributes:
-
- end_time: datetime.datetime
End Time of the Pool
- last_updated_time: datetime.datetime
Last Updated Time of the Pool
TwList
- class TwList
Bases :
dict
Note
This Object is JSON Serializable
- Reference:
tweety.types.twDataTypes.TwList
- Attributes:
-
- created_at: datetime.datetime
Time at which list was created
EditControl
Broadcast
Topic
TweetTranslate
TweetAnalytics
Gif
ScheduledTweet
ApiVideo
- class ApiVideo
Bases :
dict
Note
This Object is JSON Serializable
- Reference:
tweety.types.twDataTypes.ApiVideo
- Attributes:
-
- variants: list[ApiVideoVariant]
Available variants of Video
- Methods:
- async best_stream()
Get Best Stream available
- Return: ApiVideoVariant
ApiGif
- class ApiGif
Bases :
dict
Note
This Object is JSON Serializable
- Reference:
tweety.types.twDataTypes.ApiGif
- Attributes:
-
- variants: list[ApiVideoVariant]
Available variants of Gif
- Methods:
- async best_stream()
Get Best Stream available
- Return: ApiVideoVariant
ApiVideoVariant
ApiImage
Article
- class Article
Bases :
dict
Note
This Object is JSON Serializable
- Reference:
tweety.types.twDataTypes.Article
- Attributes:
-
- created_at: datetime.datetime
Time at which Article was created
- edited_at: datetime.datetime
Time at which Article was edited
GrokMessage
- class GrokMessage
Bases :
dict
Note
This Object is JSON Serializable
- Reference:
tweety.types.twDataTypes.GrokMessage
- Attributes:
-
- created_at: datetime.datetime
Time at which this response was generated
- attachments: list[GrokAttachment]
Media available as response
- cited_webpages: list[GrokCitedWebPage]
Webpages cited in response
GrokAttachment
GrokCitedWebPage
GifSearch
- class GifSearch
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.gifs.GifSearch
GrokConversation
- class GrokConversation
Bases :
BaseGeneratorClass
Note
This Object is JSON Serializable and Iterable
- Reference:
tweety.types.grok.GrokConversation
- Attributes:
- messages: list[GrokMessage]
List of Responses in the Conversation
- Methods:
- async get_new_response(prompt_text: str)
Generate new response from Grok against your prompt
- Return: GrokMessage