Book Image

Mastering Social Media Mining with Python

By : Marco Bonzanini
Book Image

Mastering Social Media Mining with Python

By: Marco Bonzanini

Overview of this book

Your social media is filled with a wealth of hidden data – unlock it with the power of Python. Transform your understanding of your clients and customers when you use Python to solve the problems of understanding consumer behavior and turning raw data into actionable customer insights. This book will help you acquire and analyze data from leading social media sites. It will show you how to employ scientific Python tools to mine popular social websites such as Facebook, Twitter, Quora, and more. Explore the Python libraries used for social media mining, and get the tips, tricks, and insider insight you need to make the most of them. Discover how to develop data mining tools that use a social media API, and how to create your own data analysis projects using Python for clear insight from your social data.
Table of Contents (15 chapters)
Mastering Social Media Mining with Python
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Analyzing tweets - time series analysis


The previous sections analyzed the content of tweets. In this section, we will discuss another interesting aspect of analyzing data from Twitter-the distribution of tweets over time.

Generally speaking, a time series is a sequence of data points that consists of successive observations over a given interval of time. As Twitter provides a created_at field with the precise timestamp of the tweet, we can rearrange tweets into temporal buckets so that we can examine how users react to real-time events. We are interested in observing how a population of users is tweeting, not just a single user, so the data gathered via the Streaming API is most suited for this type of analysis.

The analysis in this section uses the dataset from the 2015 Rugby World Cup Final. This is a nice example of how users react to real-time events such as sport events, concerts, political elections, and everything from major disasters to TV shows. Other applications of time series...