Twitter Class

The Twitter aggregates several mixin classes to provide all the common functionality in a nice, Pythonic interface. Each mixin has its own methods, which you all can use.

class Twitter(session_name: str | Session, proxy: dict | Proxy = None)

Bases : UpdateMethods , BotMethods, AuthMethods, UserMethods

Arguments
session_name: str | Session

This is the name of the session which will be saved and can be loaded later

proxy(optional): dict | Proxy = None

Proxy you want to use

Methods:

All Methods are Here All Available Functions!

BaseGeneratorClass

class BaseGeneratorClass

Bases : dict

Reference:

tweety.types.base.BaseGeneratorClass

Note

This Object is JSON Serializable and Iterable

This is the Base Class for All Generator Classes

Attributes:
cursor: str

Cursor for next page

is_next_page: bool

Is next page of tweets available

cursor_top: str

Cursor for previous page

Methods:
get_page(cursor: str)

Get a Page of tweets

Arguments:
cursor: str

Cursor of that specific Page

Return: tuple[list[Tweet | SelfThread | User | ConversationThread | List], cursor: str, cursor_top: str]
get_next_page()

Get next page of tweets if available using the saved cursor

Return: list[Tweet | SelfThread | User | ConversationThread | List]