Home Artificial Intelligence Exploratory Data Evaluation: What Do We Know About YouTube Channels

Exploratory Data Evaluation: What Do We Know About YouTube Channels

0
Exploratory Data Evaluation: What Do We Know About YouTube Channels

Getting statistical insights using Pandas and the YouTube Data API

Towards Data Science
Photo by Glenn Carstens-Peters, Unsplash

Nowadays, there are greater than 2.7 billion lively YouTube users, and for many individuals, YouTube will not be only entertainment but a vital source of income. But how does it work? What number of views or subscribers can different YouTube channels get? With the assistance of Python, Pandas, and the YouTube Data API, we will get some interesting insights.

Methodology

This text will likely be divided into several parts:

  • Using the YouTube Data API. With this API, we are going to give you the option to get an inventory of YouTube channels for various search requests. For every channel, we are going to get information in regards to the variety of videos, views, and subscribers.
  • Getting the list of channels we’re eager about. This may be done just once.
  • Collecting the channel data. To get statistical insights, we want to gather the info for some time frame.
  • Data evaluation.

Without further ado, let’s get into it.

1. YouTube Data API

First, a bit of excellent news for everybody who’s eager about collecting data from large networks like YouTube: the YouTube API is free, and we don’t have to pay for it. To begin using this API, we want two steps:

  • Open https://console.cloud.google.com and create a brand new project. I already had an old project there, but after some period of inactivity, all its API limits were set to zeros, and I didn’t discover a approach to reset them. So, it’s just easier to make a brand new one.
Google Cloud Console, Image by writer
  • Go to “APIs and Services” and enable “YouTube Data API”. Open the API, go to “Credentials,” and create an API key. If every part is completed accurately, the Quotas page will seem like this:
YouTube API Quotas, Image by writer

LEAVE A REPLY

Please enter your comment!
Please enter your name here