- This app uses Tweepy to get tweets from Twitter based on the input name/phrase.
- It then processes the tweets through HuggingFace transformers pipeline function for sentiment analysis.
- The resulting sentiments and corresponding tweets are then put in a dataframe for display which is what you see as result.
WEB APPLICATION - Live Twitter Sentiment Analysis
- Clone the repository
git clone https://github.com/zaidmukaddam/live-twitter-sentiment-analysis.git
- Navigate to the directory
cd live-twitter-sentiment-analysis
- Create a virtual environment
python3 -m venv venv
- Install the dependencies:
pip install -r requirements.txt
- Run the app:
streamlit run app.py
- Tweepy
- Hugging Face
- Transformers
- Twitter API
- Python