Skip to content

Twitter Sentiment Analysis Challenge for Learn Python for Data Science #2 by @Sirajology on Youtube

Notifications You must be signed in to change notification settings

arnauddelaunay/twitter_sentiment_challenge

 
 

Repository files navigation

twitter_sentiment_challenge

##Overview

This is the code for the Twitter Sentiment Analyzer challenge for 'Learn Python for Data Science #2' by @Sirajology on YouTube. The code uses the tweepy library to access the Twitter API and the TextBlob library to perform Sentiment Analysis on each Tweet. We'll be able to see how positive or negative each tweet is about whatever topic we choose.

##Dependencies

Install missing dependencies using pip

##Usage

Once you have your dependencies installed via pip, run the script in terminal via

python demo.py

##Challenge

Last week, there was the french Republicans Primary debate on television. I tried to apply Siraj's sentiment analysis to this night of debate in order to compare the seven different candidates. Here is the result of the analysis :

Mean Sentiment Polarity in descending order :

  • Poisson : 0.180
  • Fillon : 0.113
  • Juppe : 0.098
  • Sarkozy : 0.057
  • Cope : 0.036
  • Le Maire : 0.007
  • Kosciusko : 0.007

##Credits

This code is forked from Siraj

About

Twitter Sentiment Analysis Challenge for Learn Python for Data Science #2 by @Sirajology on Youtube

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%