Twitter Bot


I built a Twitter bot that tweets the daily average sentiment score of all tweets that mention the US President. Running on a Raspberry Pi 3, it connects to a Twitter stream through Twitter's API and filters for all tweets mentioning the US President while also excluding retweets. It runs sentiment analysis on the content of the tweets and saves the results to a dataset. At the end of each day, it compiles all of the data and tweets the results in the morning.

I thought it would be good to finish this project that I had started years ago before the inauguration of our new US president. I'm interested to see what trends I can pull from this data I am collecting and see if there are correlations with other polling data.