Skip to content

A twitter sentiment analysis console application project-It's able to fetch tweets,perform word-frequency and perform sentiment analysis

Notifications You must be signed in to change notification settings

faithngetich/Twitter-sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A twitter sentiment analysis console application project-It's able to fetch tweets,perform word-frequency and perform sentiment analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages