Twitter Class

class Twitter(max_retires: int = 10, proxy: dict | Proxy = None, cookies: str | dict = None)

This is main entry Class for the library you should be importing and using to make further method calls

Note

if cookies are provided all requests made to Twitter while be using that cookies.

Arguments
max_retires(optional): int = 10

The number of times you want to retry in case the Guest Token couldn’t be obtained

proxy(optional): dict | Proxy = None

Proxy you want to use

Warning

Proxy is not yet fully integrated

cookies(optional): str | dict = None

Cookies you want to use when making the requests to Twitter (as authenticated user)

Attention

Some functions requires user authentication and will not work without it

Methods:

All Methods are Here Twitter!

from tweety.bot import Twitter
app = Twitter()