Skip to content

Youtube Data Collection and Analysis

Not yet available

Overview

YouTube is an amazing data source for you. There are so many problems we can solve by collecting data from YouTube. So, if you want to learn how to collect data from YouTube and analyze that data to solve a problem, this article is for you. In this article, I’ll take you through the task of YouTube data collection and analysis using Python.

To collect data from YouTube, we need to be clear about what data we need. Let’s collect data about the trending videos on YouTube to analyze and find what makes a video trend on YouTube.

So, let’s start with data collection first. To collect data from YouTube, you need to set up an API. Here are the steps you can follow:

  1. Go to Google Cloud Console.
  2. Click on the project drop-down at the top, then “New Project”.
  3. Enter a project name and click “Create”.
  4. In the Google Cloud Console, navigate to “APIs & Services” > “Library”.
  5. Search for “YouTube Data API v3” and click on it.
  6. Click “Enable”.
  7. Go to “APIs & Services” > “Credentials”.
  8. Click “+ CREATE CREDENTIALS” and select “API key”.
  9. Copy the generated API key.

Objectives

Your task is to collect data from YouTube using the YouTube Data API v3 and analyze the data to find what makes a video trend on YouTube. You can use the following features to analyze the data:

  • Video Title: The title of the video.
  • Channel Title: The title of the channel that uploaded the video.
  • Category ID: The category ID of the video.
  • Views: The number of views the video has.
  • and etc.