Book Image

Mastering Social Media Mining with R

Book Image

Mastering Social Media Mining with R

Overview of this book

With an increase in the number of users on the web, the content generated has increased substantially, bringing in the need to gain insights into the untapped gold mine that is social media data. For computational statistics, R has an advantage over other languages in providing readily-available data extraction and transformation packages, making it easier to carry out your ETL tasks. Along with this, its data visualization packages help users get a better understanding of the underlying data distributions while its range of "standard" statistical packages simplify analysis of the data. This book will teach you how powerful business cases are solved by applying machine learning techniques on social media data. You will learn about important and recent developments in the field of social media, along with a few advanced topics such as Open Authorization (OAuth). Through practical examples, you will access data from R using APIs of various social media sites such as Twitter, Facebook, Instagram, GitHub, Foursquare, LinkedIn, Blogger, and other networks. We will provide you with detailed explanations on the implementation of various use cases using R programming. With this handy guide, you will be ready to embark on your journey as an independent social media analyst.
Table of Contents (13 chapters)
Mastering Social Media Mining with R
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Getting Blogger data


Blogger is a blog publishing service that was bought by Google in the year 2003 and it has more than 500,000 blogs. Blogger provides numerous APIs to access the data, provided you have the API key and know some required data such as the blog ID, user ID, and post ID based on the data that you are trying to access.

In order to get the API key, one has to create a project in the Google developer's console. Here's the screenshot of the Google developer's console:

On opening the console, create a new project, open it and click on the link APIs &auth, select the credential, look to see if any client IDs and client keys are available, and if not then create one. On creation, you will be provided with a client ID and an API key that can be used to access the data.

To know about the various data that can be accessed, visit https://developers.google.com/apis-explorer/#p/blogger/v3/. This link has a list of services. Let's check out a few to understand how it would work.

First...