You are on page 1of 13

Implementation of YouTube trending video analysis using Python

Language

PROJECT REPORT
Submitted by

G. VINEELA URK21EC1058
S. SAMATHA URK21EC1043

Project/Skill based Assessment for the course

22EC2002 SOCIAL MEDIA ANALYTICS


Handled by

Dr. P. Malin Bruntha M.E. Ph. D


Report submitted in partial fulfilment of the requirements
for the award of the degree of

BACHELOR OF TECHNOLOGY
ELECTRONICS AND COMMUNICATION ENGINEERING

SCHOOL OF
ENGINEERING AND TECHNOLOGY
KARUNYA INSTITUTE OF TECHNOLOGY AND SCIENCES
(Deemed to be university)
Karunya Nagar, Coimbatore - 641114. INDIA
April 2024

1
BONAFIDE CERTIFICATE

This is to certify that the mini project report entitled, “YouTube trending
video analysis” is a bonafide record of work of the candidate who carried
out the project work under my supervision during the academic year
20232024.

G. VINEELA (URK21EC1058)
S. SAMATHA (URK21EC1043)

Submitted for the review examination held on ……………………….

(Internal Examiner)

2
ACKNOWLEDGEMENT

First and foremost, I would like to thank Almighty God for all the blessings He has bestowed
upon us to work thus far and finish this project. I are grateful to our most respected founder
(late) Dr. D.G.S. Dhinakaran, C.A.I.I.B, Ph.D., and honorable chancellor Dr. Paul
Dhinakaran, M.B.A, Ph.D., for their grace and blessing.

I express our gratitude to the Vice Chancellor Dr. P. Mannar Jawahar, Ph.D., Pro Vice
Chancellor Dr. Ridling Margarat Waller, Ph.D., Pro Vice Chancellor Dr. E. J. James and the
Registrar Dr. R. Elijah Blessing, Ph.D., Karunya University, for their enduring leadership.

I extend my thanks to our Dean, School of Engineering and Technology, Dr. Prince Arul Raj,
Ph.D., Karunya University, for his excellent encouragements in course of this work.

I am very thankful to Dr. D. Jude Hemanth, Professor & Head, Department of ECE for
providing his constant readiness in providing help and encouragement at all stages in my work.

My sincere and special thanks to my course faculty, Dr. P. Malin Bruntha, Assistant Professor,
for her immense help and guidance. I would like to extend a thankful heart for her constant
support through the entire project.

I would take this opportunity to thank my, Dr R Catherine Joy M.E, B.E who had been
always there for us. I would like to convey gratitude to my Parents whose prayers and blessings
were always there with me. Last but not the least, I would like to thank my Friends and others
who directly or indirectly helped in successful completion of this work.

3
CONTENTS

S. No Topics Page No.

1. Introduction 6
2. Block Diagram 7
3. Description of the Project 8
4. Algorithm 8
5. Project Code 9
6. Result 10
7. Conclusion 13

4
Objective of the Project:
The project aims to analyze YouTube trending videos using Python to understand what makes
certain videos popular. Key objectives include:

1. Understanding Trends: Identify common themes, topics, and formats among


trending videos to gain insights into audience preferences.
2. Analyzing Engagement: Explore metrics such as likes, dislikes, comments, and view
counts to understand how viewers interact with trending content.
3. Identifying Patterns: Discover recurring patterns or characteristics that contribute to
a video's success in trending.
4. Providing Insights: Offer actionable insights for content creators and marketers to
improve their content strategy and increase the chances of their videos trending on
YouTube.

Through these objectives, the project seeks to uncover valuable insights into the dynamics of
YouTube trending videos and provide practical guidance for content creators and marketers.

5
Introduction:

YouTube, as the world's largest video-sharing platform, hosts an immense variety of content,
from educational tutorials to entertaining vlogs. Amidst this vast sea of videos, a select few
manage to capture the attention of millions and trend across the platform. Understanding the
dynamics behind these trending videos is not only fascinating but also holds significant
implications for content creators, marketers, and researchers.

The objective of this project is to conduct an in-depth analysis of YouTube trending videos
using Python-based tools and techniques. By harnessing the power of data analysis, we aim to
uncover insights into the factors driving the popularity of these videos. Through this analysis,
we seek to explore patterns, trends, and correlations within the data to understand what makes a
video stand out and become a trend on YouTube.

This project is motivated by the desire to gain a deeper understanding of the YouTube
ecosystem and to provide actionable insights for various stakeholders. Content creators can
benefit from understanding the content attributes and engagement metrics that contribute to a
video's success. Marketers can leverage insights into audience preferences to optimize their
promotional strategies. Additionally, researchers can use the findings to advance our
understanding of online video consumption behaviour and trends.

By embarking on this analysis journey, we aim to uncover valuable insights into the
phenomenon of YouTube trending videos, ultimately contributing to a better understanding of
digital media dynamics in the contemporary era.

6
Block diagram:

YouTube Data API

Data collection Preprocessing

Analysis

Visualization

7
Description of the project:
This project involves using Python to analyze YouTube trending videos. We'll collect data
using the YouTube Data API, focusing on metrics like views, likes, and comments. Our goal
is to understand what factors contribute to a video's popularity and trends on the platform.
Through data analysis, we'll identify patterns, trends, and correlations, providing insights for
content creators and marketers to optimize their strategies. The project will culminate in a
report summarizing our findings and recommendations for leveraging these insights in
content creation and marketing efforts.

Algorithm:
The algorithm used in the code for analyzing YouTube trending videos typically involves the
following steps:

1. Data Retrieval: Utilize the YouTube Data API to fetch data on trending videos,
including metrics like views, likes, dislikes, and comments.

2. Data Preprocessing:
• Clean the raw data, handling missing values and outliers.
• Convert data types as necessary.
• Extract relevant features for analysis.

3. Data Analysis:
• Calculate summary statistics for key metrics.
• Explore trends and patterns among the trending videos.
• Conduct correlation analysis to identify relationships between metrics.

4. Data Visualization:
• Create visualizations such as histograms, scatter plots, and time series plots to
illustrate trends and patterns.
• Generate heatmaps or correlation matrices to visualize relationships between
metrics.

8
Project code:

9
Output:

10
Graph:

Code for dataset 2:

11
Output:

12
Graph:

Conclusion:
The analysis of YouTube trending videos provides valuable insights into user behaviour,

content preferences, and engagement metrics. By leveraging these insights, stakeholders can

optimize their strategies and enhance user engagement on the YouTube platform.

13

You might also like