Tweety is a Python-based tweet scraper that bypasses Twitter’s API limitations by using Selenium to collect tweets directly from the web. No API keys, no rate limits, no restrictions — just fast and flexible scraping.
Resource | URL |
---|---|
🐍 PyPI | tweety on PyPI |
🛠 Repository | GitHub Repo |
📚 Documentation | Documentation |
- 🔍 Scrape tweets by keyword/topic — no login required
- 🚫 No Twitter API needed — no rate limits!
- 🧠 Sentiment analysis using VADER and TextBlob
- 📊 Structured output using pandas
🧪 You can scrape ~25 pages (~1200 tweets) reliably in one run.
beautifulsoup4
selenium
chromedriver-binary
vaderSentiment
textblob
pandas
Install the dependencies with pip
:
pip install -r requirements.txt
from twitter.tweety import tweets
# Scrape tweets related to "Super Deluxe"
tweety = tweets("Super Deluxe")
# Print sentiment analysis results
print("Polarity Scores : " + str(tweety.final_sentiment_scores))
Polarity Scores : {'positive': 0.55, 'neutral': 0.35, 'negative': 0.10}
Contributions are welcome! For major changes, please open an issue first to discuss what you'd like to improve. Don't forget to update or add tests as needed.
This project is licensed under the MIT License.