Xudong Liang (Brandon)

Twitter Sentiment and Network Analysis

The 2016 U.S. Presidential Election was an election heavily discussed on social media. With the rapid emergence of social media in the past decade, online users have easier and easier access to publicly display their opinions. On a subject matter like this, social media is second to none when it comes to examining public sentiments toward the two presidential candidates and the election outcome. Thus, the objectives are to quantitatively measure and examine reactions on 2016 Election from social media and to comparesuch reactions before and after the election result. The social media of choice is Twitter, since it is the most commonly used social media platform for brief comments. My approach is to use Twitter API to scrape tweets on 3 different hash-tags: #Election, #Hillary and #Trump, before and after the election night of November 8th, 2016. This would produce a total of 6 different datasets and graphs.

In the graphs, each node represents a twitter user and each edge represents a retweet from the source node (the user who retweets) to the destination node (the author of the original tweet) where the destination node is usually larger because the size of the node is proportional to how many times its tweets have been retweeted. Each tweet (along with its source node) is colored based on its sentiment score, evaluated by NLTK (I have included a legend for the sentiment score color mapping in the write-up analysis in the bottom). Please click on each of the links below to see the interactive graph demo.