Twitter's API is annoying to work with, and has lots of limitations — luckily their frontend (JavaScript) has it's own API, which I reverse–engineered. No API rate limits. No restrictions. Extremely fast.
Before you begin, ensure you have met the following requirements:
- Internet Connection
- Python 3.6+
- httpx
- openpyxl
- tqdm
pip install tweety-ns
pip install git+https://github.com/mahrtayyab/tweety.git --upgrade --force-reinstall
from tweety.bot import Twitter
app = Twitter("elonmusk")
all_tweets = app.get_tweets()
for tweet in all_tweets:
print(tweet)
Full Documentation and Changelogs are here