Skip to content

Analyses sentiments in tweets for a given twurl request

Notifications You must be signed in to change notification settings

Fortunate/TweetMoodometer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

TweetMoodometer

TweetMoodometer provides the function analyse-tweets which takes a valid twurl request and draws a graph depicting sentiments in the tweets.

It is built on the data-science package and the Trump's tweet analysis module initially created by Nicholas Van Horn.

read-tweets-twurl reads the tweets from the twurl request provided, the tweets are under the key 'results'

tweetlist extracts the actual tweet text from each tweet hash and removes retweets.

joined-tweetlist is a tail recursion used to extract each string from what tweetlist returns (a list of lists of strings) and appends it into one large string.

sentiment-analysis uses the large string returned from joined-tweetlist to plot the sentiments in a histogram.

About

Analyses sentiments in tweets for a given twurl request

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages