Celebrity Tweet Analysis and Visualization

Parse any celebrity's tweets from their Twitter Account with Tweepy, apply sentiment analysis, and visualize common patterns in their Tweets! We chose Donald Trump when we built the project, but due to his account suspension, change Trump to any celebrity!

TECHNOLOGIES

  • Data Visualization
  • Pandas
  • MatPlotLib
  • Data Analysis

WATCH TIME

35 minutes

LEVEL

All

Overview

This project is a beginner-friendly Python and Data Science application focused on using the Tweepy module to parse, analyze and visualize tweets. We’ll get a list of all of the latest tweets, create a data frame, and build visualizations on the number of likes, sentiment analysis of the tweets, and finally a word map on the common words used.

Project Tasks

Welcome to the project!

2 min

Setting up Twitter Authentication with Tweepy

We will be setting up Twitter authentication to get the information needed for the rest of the project.

8 min

Analyzing and Visualizing Tweet Sentiment

Applying sentiment analysis on daily tweets using the Vader sentiment intensity analyzer function.

9 min

Generating a Word Cloud of Common Words

Creating a Word Cloud to visualize the most common words in tweets.

6 min

Visualizing Number of Likes Per Tweet

Plotting a histogram of the number of likes across our celebrity's tweets.

5 min

Creating our Tweet DataFrame

Creating the DataFrame from Twitter data to be parsed later on in this project.

8 min

Hey! I’m Avi, and I’ll teach you how to build!

I'm Avi, your new Python instructor and founder of The Codex.

Three years ago I was stuck. I wasn’t learning anything in my theory-filled CS classes, my friends took pictures of me sleeping in lecture, and I was questioning why I was even learning CS to begin with. I had ideas but I was clueless on execution.

After watching hours of webcasted YouTube videos, enrolling in course after course, and struggling to stay motivated, I finally obtained the skills to bring my ideas to life. I realized how lonely and gruesome this process was.

If you’re a student just like me, you know exactly what it’s like to be stuck in course hell. The best programmers of today learned by doing, not by reading syntax in a textbook.

Join The Codex. Become a creator.

Savvy Students ❤️ The Codex

The Codex has helped hundreds of students find jobs and build their dream projects.

“CS classes at UW were overwhelming and full of theory. Through The Codex, I realized the power of Python programming, built numerous projects for my resume and ultimately landed an internship at Amazon.“
Arjun Malhotra
University of Washington, 2022
SDE Internship, Amazon

Ready to dive in? Start learning today.