Skip to content

mahrtayyab/tweety

Repository files navigation

tweety

Reverse Engineered Twitter Frontend API.

Downloads

Installation:

pip install tweety-ns

Keep synced with latest fixes

Pip might not be always updated , so to keep everything synced.
pip install https://github.com/mahrtayyab/tweety/archive/main.zip --upgrade 

A Quick Example:

    from tweety import TwitterAsync
    import asyncio
    
    async def main():
    
        app = TwitterAsync("session")  
        all_tweets = await app.get_tweets("elonmusk")
        for tweet in all_tweets:
            print(tweet)

    asyncio.run(main())

Important

Even Twitter Web Client has a lot of rate limits now, Abusing tweety can lead to read_only Twitter account.

Do check FAQs

Full Documentation and Changelogs are here