Accessing GitHub data

There are various ways to access data from GitHub just like we have seen in the previous chapters for other social media platforms. If you are using R, you can go ahead and use the rgithub package which provides a high level interface with several functions to retrieve data from GitHub. Besides that, you can also register an application with GitHub to get an OAuth-based access token which can be used to gain access to GitHub's own API. We will cover both mechanisms briefly in this section.

Using the rgithub package for data access

As we mentioned earlier, there is a specific package in R known as rgithub which provides high level functions and interfaces to access GitHub data. You can install and load the package in R using ...

Get Learning Social Media Analytics with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.