This project is a comprehensive analysis of Kenyan YouTube channels, leveraging the YouTube API to gather data and draw insights. The analysis categorizes channels into various genres, focusing on metrics such as total views, number of videos uploaded, and subscriber count. Visualizations and a dashboard are created to provide an interactive and detailed understanding of the data.
-
Categorize Kenyan YouTube channels into 'Comedy', 'Lifestyle', 'Talk Show', 'Podcast', 'Storytelling', and 'Music'.
-
Identify and highlight the leading channels in each category based on:
-
Total views
-
Number of videos uploaded
-
Subscriber count
-
-
Extract and analyze video-level details such as:
-
Video title
-
Total views
-
Likes
-
Comments
-
-
Create visualizations to compare metrics across channels and categories.
-
Develop a dashboard for presenting findings interactively.
-
Python: Primary programming language used for data extraction and analysis.
-
YouTube API: Used to fetch data related to channels and videos.
-
Libraries:
-
google-api-python-client
: For accessing YouTube API data. -
pandas
: For data manipulation and analysis. -
seaborn
andmatplotlib
: For creating visualizations.
-
-
Infogram
: For building the dashboard.
- Data Collection:
-
Created a virtual environment and installed necessary Python packages.
-
Used the YouTube API to extract data related to Kenyan YouTube channels.
- Data Categorization:
- Channels were categorized into 'Comedy', 'Lifestyle', 'Talk Show', 'Podcast', 'Storytelling', and 'Music'.
- Data Analysis:
-
Loaded the data into Pandas DataFrames.
-
Extracted metrics at both channel and video levels.
-
Saved cleaned data into CSV files for reproducibility and further analysis.
- Visualizations:
-
Used Seaborn and Matplotlib to create comparisons of metrics such as views, subscriber counts, and video uploads across categories.
-
Highlighted the top three most-watched videos from the channel with the highest views.
- Dashboard Creation:
- Built an interactive dashboard on Infogram for presenting the analysis results.
-
Clone this repository.
-
Set up a virtual environment and install dependencies using the requirements.txt file.
-
Obtain YouTube API credentials and configure them in the project.
-Run the data extraction and analysis scripts.
- Explore the visualizations and dashboard for insights.
-
Categorized Kenyan YouTube channels to provide insights into the local content creation landscape.
-
Highlighted leading channels and top-performing videos across multiple categories.
-
Developed a reusable pipeline for extracting and analyzing YouTube data.
-
Delivered an interactive dashboard showcasing the analysis, accessible HERE 🚀.