Learn how to analyze top YouTube channels using Python in this project blog by students. Retrieve video information using the YouTube Data API and analyze with Pandas, Matplotlib, Seaborn, and more. Follow the easy steps to run the code on your computer or use free online resources. Download the dataset and save it in CSV format using Pandas.
In this project, we are going to analyse the top Youtube channel 'T-Series' 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. ) learned in Data Analysis with Python: Zero to Pandas course. I highly recommend this course if you're a beginner in this field.
This is an executable Jupyter notebook hosted on Jovian.ml, a platform for sharing data science projects. You can run and experiment with the code in a couple of ways: using free online resources (recommended) or on your own computer.
The easiest way to start executing this notebook is to click the "Run" button at the top of this page, and select "Run on Binder". This will run the notebook on mybinder.org, a free online service for running Jupyter notebooks. You can also select "Run on Colab" or "Run on Kaggle".
Install Conda by following these instructions. Add Conda binaries to your system
PATH, so you can use the
conda command on your terminal.
Create a Conda environment and install the required libraries by running these commands on the terminal:
conda create -n zerotopandas -y python=3.8 conda activate zerotopandas pip install jovian jupyter numpy pandas matplotlib seaborn opendatasets --upgrade
jovian clone notebook-owner/notebook-id
cd directory-nameand start the Jupyter notebook.
You can now access Jupyter's web interface by clicking the link that shows up on the terminal or by visiting http://localhost:8888 on your browser. Click on the notebook file (it has a
.ipynb extension) to open it.
We're going to gather some data from T-Series 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