Skip to content

Sentiment Analysis on Twitter keywords using Python - using Tweepy and TextBlob libraries

License

Notifications You must be signed in to change notification settings

Gichure/twitter-sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Sentiment Analysis using Python

Sentiment Analysis on Twitter keywords using Python - using Tweepy and TextBlob libraries and NLTK corpora. Data Visualization was done using Matplotlib.

  • Tweepy is the python client for the official Twitter API.
  • TextBlob is the python library for processing textual data.

Installation

  • Ensure you have python installed
  • Replace the following lines in TwitterClient.py with values from your Twitter Application from the developer account:
    consumer_key = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' consumer_secret = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' access_token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' access_token_secret = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
  1. Clone the repository
    git clone git@github.com:Gichure/twitter-sentiment-analysis.git

  2. Go to the twitter-sentiment-analysis folder cd twitter-sentiment-analysis folder ``

  3. Go to the executable file folder
    cd src/com/pgichure/sentiment-analysis/

  4. Execute the script "TwitterClient.py"

	python TwitterClient.py

You will be prompted to enter the keyword. Provide keyword and hit enter Prompt and Analysis
Sentiment Analysis

Contact

Send me an email to build a sentiment analysis application for your unique business brands, campaigns and needs. Visit my website

Author

Paul Gichure

About

Sentiment Analysis on Twitter keywords using Python - using Tweepy and TextBlob libraries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages