Skip to content

Latest commit

 

History

History
71 lines (37 loc) · 2.02 KB

README.md

File metadata and controls

71 lines (37 loc) · 2.02 KB

Build Status Coverage Status

Twitter sentiment analysis

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 .

Main Features

  • 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

Getting your own instance of twitter sentiment analysis

  1. 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

  1. 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

  1. Open Git Bash

  2. Install project dependencies via pip. It's recommended that you do this in a virtualenv

    $ pip install -r requirements.txt

  3. Activate the virtual environment

    $ source venv\bib\activate

  4. Run a tweet_cmd.py file.

    $ python tweet_cmd.py -i

  5. Enter this command.

    $ fetch twitterhandle

  6. Enter the frequency command.

    $ frequency

  7. Enter the sentiment command.

    $ sentiment

Dependencies

  To run the app you need to install all the modules used in the code. Install the modules by installing the requirements.txt

Issues