In this video, we build a Python Project to Scrape YouTube data using YouTube Data API. Using YouTube API, we extract the data and then load this data into a Python Pandas DataFrame and then analyze this data. Finally, we build simple visualization from this data using the Python Seaborn library.
Link to create YouTube API Key: https://console.cloud.google.com/
Link to Google YouTube Data API documentation: https://developers.google.com/youtube/v3
Link to my blog where you can download this project for free: https://techtfq.com/video/python-proj...
Timestamp:
00:00 Intro
01:19 How to generate YouTube API Key
03:27 Google YouTube Data API Documentation
07:48 Pre Requisite for project (Creating virtual environment and install python packages)
09:45 Part 1 - Scrape Channel statistics from youtube. Analyze and Visualize YouTube channel
32:32 Part 2 - Scrape Video details for a youtube channel. Analyze and Visualize video details.
We start this project by first creating an YouTube API Key which will be our credential to access youtube data. I will should you in detail, how to create an API Key.
Once the API Key is generated, we will then learn how to use this API key to access different youtube data. I.e. we will walk through the documentation given by google to use youtube API. We will look at the different sections in the documentation to access different data we need to build this project. We will also look at the sample python code given by google to call different resources and methods to fetch youtube data.
Finally, we will get into writing the python code to build this project. I will be using Jupyter Notebook to write my python code. Since it is a new project, we will create a new virtual environment for this project. We will use anaconda for this. Once the virtual environment is set, we will then install all the required python packages. So we will install "google-api-python-client" (which is the google python package required to access youtube api data), we will also install pandas and seaborn. I will show you how to create a virtual environment and also how to install all these packages in detail.
Once our environment is set and required packages are installed, we will then start writing the code in Jupyter Notebook. I have divided this project into 2 parts.
In the first part, we extract channel details from youtube. I.e. we extract details such as youtube channel name, total no of subscribers, total views and total number of videos posted by each channel. We gather these details for few Data Analyst/Data Scientist kind of channel and then compare these channel data with each other. We shall see who has the highest subscriber and who gets the most views and the amount of videos posted by these channels. We will be loading all of this data into a pandas dataframe and then analyze it. We will also generate some basic visualization using this data so we can easily compare these multiple channels.
In the second part of the video, we shall build a logic to extract video details from a particular channel. We shall extract details such as video title, total views each video has got, total number of likes, dislikes and comments each video has got. We shall extract these details for all of the videos posted by a particular channel. We will then analyze this data by loading it into a pandas dataframe. At the end we will create some simple visualization using Seaborn python library.
Hopefully, this can be a good starting project for anyone aspiring to become a Data Analyst. If you find this video useful then please make sure to like the video and subscribe to the channel.
🔴 WATCH MORE VIDEOS HERE 👇
✅ SQL Tutorial - Basic concepts:
• SQL Tutorial - Basic concepts
✅ SQL Tutorial - Intermediate concepts:
• SQL Tutorial - Intermediate concepts
✅ SQL Tutorial - Advance concepts:
• SQL Tutorial - Advance concepts
✅ Practice Solving Basic SQL Queries:
• Practice Solving BASIC SQL Queries
✅ Practice Solving Intermediate SQL Queries:
• Practice Solving INTERMEDIATE SQL Que...
✅ Practice Solving Complex SQL Queries:
• Practice Solving COMPLEX SQL Queries
✅ Data Analytics Career guidance:
• Data Analytics career and more
✅ SQL Course, SQL Training Platform Recommendations:
• SQL Course / Training
✅ Python Tutorial:
• Python Tutorial
THANK YOU,
Thoufiq