A Twitter sentiment analysis application. Andela Kenya Class XIV Boot Camp Project.
Twitter sentiment analysis is a Python command line app that gives sentiment and emotion analysis of tweets from a specified twitter handle .
- Allow users to input a twitter handle
- Allow users to find the frequency of words in the tweets used
- Allow users to analyze the tweet sentiments
you can find it here https://github.com/faithngetich/Twitter-sentiment-analysis
- Install python
Download Python onto your computer by using the following links
Windows - Python Downloads Mac - Python for Mac OS X Ubuntu - install python2.x and python2.x-dev packages Other systems - see the general download page
- Clone this repository. Type Python. If you have Python installed, you should see a response that includes the version number. Clone the repository to your local folder of your choice
$ git clone https://github.com/faithngetich/Twitter-sentiment-analysis.git
-
Open Git Bash
-
Install project dependencies via
pip
. It's recommended that you do this in avirtualenv
$ pip install -r requirements.txt
-
Activate the virtual environment
$ source venv\bib\activate
-
Run a tweet_cmd.py file.
$ python tweet_cmd.py -i
-
Enter this command.
$ fetch twitterhandle
-
Enter the frequency command.
$ frequency
-
Enter the sentiment command.
$ sentiment
To run the app you need to install all the modules used in the code. Install the modules by installing the requirements.txt