Python Project to Scrape YouTube using YouTube Data API | Analyze and Visualize YouTube data
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-project-to-scrape-youtube-using-youtube-data-api
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:
https://www.youtube.com/playlist?list=PLavw5C92dz9HQQ_COgGb7kf_1H8UWUBxO
✅ SQL Tutorial - Intermediate concepts:
https://www.youtube.com/playlist?list=PLavw5C92dz9FD9XspliRM_HZM_jK7tkii
✅ SQL Tutorial - Advance concepts:
https://www.youtube.com/playlist?list=PLavw5C92dz9GbmgiW4TWVnxhjMFOIf0Q7
✅ Practice Solving Basic SQL Queries:
https://www.youtube.com/playlist?list=PLavw5C92dz9F66P3GFo5O6nJ4DfZNhVsp
✅ Practice Solving Intermediate SQL Queries:
https://www.youtube.com/playlist?list=PLavw5C92dz9EIYmNXJ8ZtQ1bmLIpt0SpV
✅ Practice Solving Complex SQL Queries:
https://www.youtube.com/playlist?list=PLavw5C92dz9Fahr7taauUx5RnTfuGyL--
✅ Data Analytics Career guidance:
https://www.youtube.com/playlist?list=PLavw5C92dz9FDsr995DjwCy9XNaIukb8P
✅ SQL Course, SQL Training Platform Recommendations:
https://www.youtube.com/playlist?list=PLavw5C92dz9GqF1Q_zn8KnYvFgtEOh-2n
✅ Python Tutorial:
https://www.youtube.com/playlist?list=PLavw5C92dz9FePZXIo4jpsupqp3X0w2SW
THANK YOU,
Thoufiq
Видео Python Project to Scrape YouTube using YouTube Data API | Analyze and Visualize YouTube data канала techTFQ
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-project-to-scrape-youtube-using-youtube-data-api
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:
https://www.youtube.com/playlist?list=PLavw5C92dz9HQQ_COgGb7kf_1H8UWUBxO
✅ SQL Tutorial - Intermediate concepts:
https://www.youtube.com/playlist?list=PLavw5C92dz9FD9XspliRM_HZM_jK7tkii
✅ SQL Tutorial - Advance concepts:
https://www.youtube.com/playlist?list=PLavw5C92dz9GbmgiW4TWVnxhjMFOIf0Q7
✅ Practice Solving Basic SQL Queries:
https://www.youtube.com/playlist?list=PLavw5C92dz9F66P3GFo5O6nJ4DfZNhVsp
✅ Practice Solving Intermediate SQL Queries:
https://www.youtube.com/playlist?list=PLavw5C92dz9EIYmNXJ8ZtQ1bmLIpt0SpV
✅ Practice Solving Complex SQL Queries:
https://www.youtube.com/playlist?list=PLavw5C92dz9Fahr7taauUx5RnTfuGyL--
✅ Data Analytics Career guidance:
https://www.youtube.com/playlist?list=PLavw5C92dz9FDsr995DjwCy9XNaIukb8P
✅ SQL Course, SQL Training Platform Recommendations:
https://www.youtube.com/playlist?list=PLavw5C92dz9GqF1Q_zn8KnYvFgtEOh-2n
✅ Python Tutorial:
https://www.youtube.com/playlist?list=PLavw5C92dz9FePZXIo4jpsupqp3X0w2SW
THANK YOU,
Thoufiq
Видео Python Project to Scrape YouTube using YouTube Data API | Analyze and Visualize YouTube data канала techTFQ
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Solving an SQL Interview Problem | Find Child - Parent - Grandparent Hierarchy using SQL](https://i.ytimg.com/vi/nzJJP-uDIZc/default.jpg)
![From 16 years of CAREER GAP To becoming a Software Engineer | How to get a JOB after a career gap](https://i.ytimg.com/vi/BNmoCYk58mU/default.jpg)
![3 SQL Queries Asked in Interview for Business Analyst - Solved](https://i.ytimg.com/vi/W5Wvyc9Pass/default.jpg)
![Courses You Can Take To Get Into Data Analytics](https://i.ytimg.com/vi/oedv5lR3w_g/default.jpg)
![Solving a Real SQL Interview Problem | Job Vacancies SQL Query](https://i.ytimg.com/vi/HiscSRv7zWk/default.jpg)
![Python Bootcamp for Beginners | Python Course | Live Training](https://i.ytimg.com/vi/PLN28d0PoFU/default.jpg)
![SQL Data Analytics Project (PART 3) | Data Analyst Portfolio Project](https://i.ytimg.com/vi/GxmrInUIMAE/default.jpg)
![SQL Data Analytics Project (PART 2) | Data Analyst Portfolio Project](https://i.ytimg.com/vi/D0-Qy7yk5TQ/default.jpg)
![SQL Data Analytics Project (PART 1) | Data Analyst Portfolio Project](https://i.ytimg.com/vi/GHtX0QXfi6g/default.jpg)
![Learn SQL from me | Live SQL Training | SQL Bootcamp](https://i.ytimg.com/vi/0QcEqFrhb_Y/default.jpg)
![Learn Python here | Learn Python Programming here](https://i.ytimg.com/vi/smztq8sRAhk/default.jpg)
![Solving a Complex SQL Interview problem | Practice SQL Queries](https://i.ytimg.com/vi/7skZzocEU6c/default.jpg)
![REAL SQL Interview Problem | Hierarchical data in SQL](https://i.ytimg.com/vi/LZGaRcDxj8I/default.jpg)
![Complete guide to Database Normalization in SQL](https://i.ytimg.com/vi/rBPQ5fg_kiY/default.jpg)
![SQL Live class on Lighthall | Learn SQL from Basic to Advance in SQL Bootcamp](https://i.ytimg.com/vi/hvwltYazuQo/default.jpg)
![How to learn SQL for free | Roadmap to learning SQL](https://i.ytimg.com/vi/a-hFbr-4VQQ/default.jpg)
![Solving an SQL Interview Problem](https://i.ytimg.com/vi/pMNcPLc9Z7c/default.jpg)
![Solving SQL Interview Query | Find Tree Node type using SQL](https://i.ytimg.com/vi/zZKb8FQRShs/default.jpg)
![Solving SQL Interview Query for Data Analyst asked by a Product based company](https://i.ytimg.com/vi/jS5_hjFgfzA/default.jpg)
![Solving a tricky SQL Interview Query](https://i.ytimg.com/vi/6UAU79FNBjQ/default.jpg)
![SQL Interview Query for Data Analyst](https://i.ytimg.com/vi/ZwFfiadQB3k/default.jpg)