Check out the deployed version of the app: Live Demo
This is a Streamlit-based web app for real-time sentiment analysis of tweets using Twitter API v2. The app fetches tweets based on user-input keywords and performs sentiment analysis using a custom sentiment analysis model (previously used VADER and TextBlob). It also provides interactive visualizations and allows downloading the analyzed data.
- Fetch live tweets based on a keyword using Twitter API v2
- Sentiment analysis using a custom-built sentiment analysis model (Previously used VADER and TextBlob)
- Interactive visualizations (Pie Charts, Histograms, Metrics)
- Filter and search tweets based on sentiment
- Download results as a CSV file
git clone https://github.com/ShauryaDusht/realtime-twitter-sentiment.git
cd realtime-twitter-sentimentpython -m venv venv
source venv/bin/activate # On macOS/Linux
venv\Scripts\activate # On WindowsEnsure you have Python installed, then run:
pip install -r requirements.txtGet your Bearer Token from Twitter Developer Portal. Add it when prompted in the app.
streamlit run app.py- Frontend: Streamlit
- Backend: Tweepy (Twitter API v2), NLTK, Custom Sentiment Analysis Model (Previously used VADER and TextBlob)
- Visualization: Plotly, Pandas
Here are some screenshots of the app in action:








