This project uses the YouTube API to compare two YouTube channels based on various metrics. The project aims to provide a comprehensive analysis of the channels' performance, growth, and audience engagement.
- 
Table for Subscriber Counts, Video Counts, and View Counts:
- Displays a table comparing the key metrics of the two channels.
 
 - 
Bar Chart of Subscriber Counts:
- Visual representation of the subscriber counts for each channel.
 
 - 
Bar Chart of Video Counts:
- Visual representation of the video counts for each channel.
 
 - 
Bar Chart of View Counts:
- Visual representation of the view counts for each channel.
 
 - 
Growth Rate Analysis:
- Analyzes and compares the growth rate of each channel over a specified period.
 
 - 
Engagement Rate:
- Calculates and compares the engagement rates of the channels, providing insights into audience interaction.
 - The Engagement Rate is a key metric used to measure the level of interaction and involvement a YouTube channel's audience has with its content. It is calculated by considering various factors such as likes, comments, and views. A higher engagement rate indicates that the audience finds the content interesting and engaging.This metric helps in understanding how effectively a channel is connecting with its viewers and fostering active participation.
 - The engagement rate can be calculated using the following formula:

 
 - 
Sentiment Analysis on Comments using ML:
- Uses machine learning to analyze the sentiment of comments on videos from the channels.
 
 
To get started with this project, follow these steps:
- 
Clone the repository:
git clone https://github.com/Harsha2k3/YT_API_Channel_Comparator.git YT_API_Channel_Comparator
 - 
Install the required dependencies:
pip install -r requirements.txt
 - 
Set up YouTube API:
- Go to https://developers.google.com/youtube/v3
 - Click on "Add YouTube functionality to your site"

 - Click on "Google Developers Console"

 - Click on "Youtube Statistics"

 - Create New Project

 - Select project in notifications

 - Click on ENABLE APIS AND SERVICES

 - Click on "Credentials"

 - Create Credentials and select API key

 - Copy the created API key
 - Now, we have to enable the API key
 - Click on ENABLE APIS AND SERVICES

 - Search for "youtube data api v3"

 - Select it

 - Click "ENABLE"

 
 
- 
Run the main script to fetch data from YouTube API and perform analysis:
python main.py
 - 
Generate visualizations and reports:
- The script will generate tables and charts for comparison.
 - The results will be saved in the 
outputdirectory. 
 
- For any inquiries or questions regarding the YT API Channel Comparator, please reach out to harshamamidipaka2003@gmail.com