Learn practical skills, build real-world projects, and advance your career

Youtube Channel Analysis

image.png

In this project, we are going to analyse the top Youtube channel 'Zee Music Company' using Python. First, we'll retreive videos information from this channel using Youtube Data API and Python. Then we'll create the dataset of this information using JSON and Pandas. Now, We'll analyse this dataset using Python analysis techniques and libraries ( Pandas, Matplotlib, Seaborn, etc. )

Downloading the Dataset

We're going to gather some data from Zee Music Company Youtube channel using Youtube Data API, JSON and Python. We'll save and export this data in csv file using Pandas.

Let's begin by importing the required libraries

# Importing Pandas library for saving data in a dataframe and exporting it in csv file
import pandas as pd

# Importing requests, it's a Python HTTP library for making HTTP requests
import requests

# Importing JSON library to save retrieved data in json format
import json
To access Youtube Data API, we need an API key (free of cost)

(Find here: https://console.developers.google.com/apis/)

You need to create a gmail account to acccess this site. Create a new project, give it a name, then click on create. One it is created. Select this project from the drop down on the top. Click on enalbe API. Then from the library select the api you want to use. In our case we have used 'Youtube Data API V3'. Click on the select library of API and click on credentials available on the left pane. Click on create credentials, and select API Key. You will get the API Key for your use. copy paste it here.