Skip to main content

Analyzing Social Media Data in Python

In this course, you'll learn how to collect Twitter data and analyze Twitter text, networks, and geographical origin.

Start Course for Free
4 Hours14 Videos51 Exercises16,640 Learners4000 XPMarketing Analytics Track

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

Twitter produces hundreds of million messages per day, with people around the world discussing sports, politics, business, and entertainment. You can access thousands of messages flowing in this stream in a matter of minutes. In this course, you will learn how to collect Twitter data and analyze tweet text, Twitter networks, and the geographical origin of the tweet. We'll be doing this with datasets on tech companies, data science hashtags, and the 2018 State of the Union address. Using these methods, you will be able to inform business and political decision-making by discovering the prevalence of important topics, the diversity of discussion networks, and a topic's geographical reach.

  1. 1

    Basics of Analyzing Twitter Data


    Why analyze Twitter, how to access Twitter APIs, and understanding Twitter JSON.

    Play Chapter Now
    Analyzing Twitter data
    50 xp
    Why Analyze Twitter Data?
    50 xp
    Uses of Twitter analysis
    50 xp
    Collecting data through the Twitter API
    50 xp
    Twitter APIs
    50 xp
    Setting up tweepy authentication
    100 xp
    Collecting data on keywords
    100 xp
    Understanding Twitter JSON
    50 xp
    Loading and accessing tweets
    100 xp
    Accessing user data
    100 xp
    Accessing retweet data
    100 xp

In the following tracks

Marketing Analytics


dcamposlizDavid Camposgreg48f6413b062b43d9922770f18691b376Greg WilsonkarawooKara WooeunkyungparkkEunkyung ParkshoninouyeShon Inouye
Alex Hanna Headshot

Alex Hanna

Computational Social Scientist

Alex Hanna is a computational social scientist working in the areas of politics, natural language processing, and fairness in machine learning and artificial intelligence.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA