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

Mining local businesses on Yelp


Yelp is an online service that hosts crowd-sourced reviews about local businesses, such as bars and restaurants (https://www.yelp.com). Visited by 135 million monthly users, its content is mainly community-driven.

Yelp offers three APIs that can be used to search for and interact with data about local businesses. The three APIs are grouped depending on their purpose. The search API is the entry point for keyword-based search. The business API is used to look for information about a specific business. The phone search API is used to search for a business by phone number.

The Yelp API has the rate limit of 25,000 calls per day.

This section describes the basic steps to set up an application that searches the Yelp database for particular keywords.

The access to the APIs is protected by tokens. The first step to access any of the APIs, after registering an account on Yelp, is to obtain the tokens on the developers' website (https://www.yelp.com/developers). Figure...