π¦ Tweety
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.
π Project Links
Resource | URL |
---|---|
π PyPI | tweety on PyPI |
π Repository | GitHub Repo |
π Documentation | Documentation |
β¨ Features
- π 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.
π¦ Dependencies
beautifulsoup4
selenium
chromedriver-binary
vaderSentiment
textblob
pandas
π₯ Installation
Install the dependencies with pip
:
pip install -r requirements.txt
βοΈ Usage
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))
π Tweety Directory Structure
π Output Example
Polarity Scores : {'positive': 0.55, 'neutral': 0.35, 'negative': 0.10}
π€ Contributing
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.
π License
This project is licensed under the MIT License.