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 (10 chapters)

Embedding the search results in a web GUI


In this section, we will expand on the first example in order to visualize the results of our search. As a means to show the items, we'll use a web page automatically generated on the fly so that we can display the profile image next to the display name for each person or page using a familiar interface. This visualization can help us disambiguate between different results that share the same display name.

In order to reach this goal, we will introduce Flask (http://flask.pocoo.org/), a micro framework for web development that allows us to rapidly produce a web interface.

Broadly speaking, Python and web development go hand in hand, and several web-related Python libraries have been around for many years, reaching an interesting level of maturity. Flask is relatively young compared to other frameworks, but it has also reached a level of maturity and has been adopted by a wide community. As web development is not a core concept of this book, we will...