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

Getting started with the Stack Exchange API


The Stack Exchange API (https://api.stackexchange.com/docs) provides a programmatic access to all the Stack Exchange websites. Third-party applications that intend to use the API should be registered at http://stackapps.com in order to obtain a request key used to grant more requests per day. Registered apps can also perform authenticated API calls, that is, to interact with Stack Exchange on behalf of the authenticated user. The registration process is fairly straightforward, as shown in Figure 6.3-all the details required are an Application Name and Description:

Figure 6.3: An app registration on stackapps.com

The immediate effect of registering our application is the increased number of requests per day that are allowed by the API. It's important to note that rate limits are not only set on a daily basis, but also to prevent flooding (for example, if the same IP is sending more than 30 requests per second, the requests will be dropped). Details...