Skip to content

SCK22/Twitter-Sentiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter-Sentiment-Analysis

  1. Python 2.7 or higher
  2. clone the repo https://github.com/SCK22/Twitter-Sentiment (use the master branch)
  3. Install packages run pip install -r requirements.txt
  4. Twitter API authentication Keys, generated from twitter API and put them in a access_tokens.json file in the following format.
{
    "api_key" : "XXXXXX",
    "api_secret" : "XXXXXX,
    "access_token" : "XXXXXX,
    "access_token_secret" : "XXXXXX"
} 

Analyzing the sentiment of tweets for a particular key word. This analysis is based on the tweet text only.

how to run (example):

python main.py <WORD> <NUM_TWEETS>
python main.py #F1 1000

Sample image

About

Analyzing the sentiment of twitter tweets for a particular key word. This analysis is based on the tweet only.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages