Sentiment Analysis Tool for tweets using Python, MongoDB and Twitter Streaming API
- Twitter App
- Python 3.5
- MongoDB 3.4.5
-
- Tweepy 3.6.0
- PyMongo 3.7.1
- NLTK 3.3
- TextBlob 0.15.1
- Matplotlib 2.2.3
-
Install Python 3.5
-
Install MongoDB
-
Create a Twitter app
-
Save all keys and access tokens inside files/credentials.json
IMPORTANT: Do not share your personal keys and access tokens with anyone!
-
Install all Python libraries given or run
pip install -r requirements.txt
-
Open a terminal and run
python
. Then, typeimport nltk
andnltk.download()
-
Install
movie_reviews
,subjectivity
,stopwords
,vader_lexicon
andpunkt
packages -
Run main.py (make sure you have an open MongoDB connection)
Forked from DSkoufis/My_Thesis