Simple twitter streamer & sentiment.
To run; Just use steps below:
- Install
python3
,pip
,virtualenv
in your system. - Clone the project
https://github.com/mohamadkhalaj/twitter_sentiment.git
. - Make development environment ready using commands below;
git clone https://github.com/mohamadkhalaj/twitter_sentiment.git && cd twitter_sentiment
python3 -m venv venv # Create virtualenv named venv
source venv/bin/activate
pip install -r requirements.txt
- First add keywords: python twitter_datamining.py apple OR python twitter_datamining.py apple samsung.
- Wait to collect fresh tweets and then terminate app (if you don't, it collects all new tweets!).
- After tweets collected run sentiment.py and see the results.