Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Example of querying tweets over 7 days & running sentiment analysis on tweets.

Notifications You must be signed in to change notification settings

rgulden/wendys-spicy-nug-sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentiment Analysis of Wendys tweets

Grab n amount of tweets from given range with words "wendys spicy nuggets" and use textblob to determine a polarity score. This script is python3 only.

  • pip install -r requirements.txt

Purpose

This is a demonstration of how to query tweets from older than 7 days and run sentiment anaylsis on them. This example is comparing the polarity of tweets before and after Wendys released their spicy nuggets. The output proves the amount of positive tweets about Wendys went up after they released the nuggets.

Output Example

python3 wendys.py

----Announcement to reveal----
Positive tweets percentage: 21.64486862259927 %
Negative tweets percentage: 32.26110521974785 %
Neutral tweets percentage: 46.094026157652884 %


----Reveal to current----
Positive tweets percentage: 36.0 %
Negative tweets percentage: 27.0 %
Neutral tweets percentage: 37.0 %

About

Example of querying tweets over 7 days & running sentiment analysis on tweets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages