TweetFeel is a Flask web app that performs real-time sentiment analysis on tweets scraped via twscrape. It features user authentication, an SQL database for storing tweets, and data visualizations through PyChart, including histograms and line graphs.
TweetFeel is a Flask web application that performs real-time sentiment analysis on tweets scraped using twscrape. It features user authentication, an SQL database for storing tweets and user data, and interactive data visualizations with PyChart, including histograms and line graphs.
- Real-Time Tweet Scraping: Collects tweets based on keywords or hashtags using
twscrape. - Sentiment Analysis: Classifies tweets as positive, negative, or neutral.
- User Authentication: Secure login and registration system.
- SQL Database: Stores tweets and user information efficiently.
- Data Visualizations: Interactive graphs (histograms, line graphs) to display sentiment trends.
- Backend: Python, Flask,
twscrape, SQL (SQLite/PostgreSQL) - Frontend: HTML5, CSS3, JavaScript, PyChart
-
Clone the Repository
git clone https://github.com/yourusername/TweetFeel.git cd TweetFeel -
Create a Virtual Environment
python3 -m venv venv source venv/bin/activate # On Windows: `venv\Scripts\activate`
-
Install Dependencies
pip install -r requirements.txt
-
Configure the Database
- Update the database URI in
config.pyif necessary. - Initialize the database:
flask db init flask db migrate -m "Initial migration." flask db upgrade
- Update the database URI in
-
Run the Application
flask run
-
Access the App
- Open your browser and navigate to
http://localhost:5000
- Open your browser and navigate to
- Register an Account: Create a new user to access TweetFeel.
- Scrape Tweets: Enter keywords or hashtags to start scraping tweets in real-time.
- View Sentiments: See sentiment analysis results categorized as positive, negative, or neutral.
- Explore Visualizations: Use interactive graphs to analyze sentiment trends and patterns.
Contributions are welcome! Follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/YourFeature) - Commit your changes (
git commit -m 'Add some feature') - Push to the branch (
git push origin feature/YourFeature) - Open a Pull Request
This project is licensed under the MIT License.



