Skip to content

Twitter Sentiment analysis with polarity and subjectivity using Python

Notifications You must be signed in to change notification settings

piyushvarshney/twitter-sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Machine Learning based Tweet Sentiment Analysis

Search for Tweets and download the data labeled with it's Polarity in CSV format

demo image

Development Guide (Steps)

  1. Go to (https://apps.twitter.com), create development application there for API access
  2. Create a virtual Environment. virtualenv venv
  3. Activate venv. source venv/bin/activate
  4. Install the requirements. pip install -r requirements.txt
  5. Save the ACCESS_TOKEN, ACCESS_TOKEN_SECRET, CONSUMER_KEY, CONSUMER_SECRET as environment variables. You can follow this guide for Heroku (or any other online server you wish to run this upon).
  6. Change twitter username in app.py at line 8 to yours(one that was used to create API access at (https://apps.twitter.com)
  7. Run the server. python app.py