Ever wondered how long it will take to finish that YouTube course playlist you just found? Instead of manually checking each video, I built a small Python project called CourseTime Analyzer π.
This tool automatically searches YouTube for a course playlist, fetches all video durations, and calculates the total study time β all packed in a simple Tkinter GUI.
π₯ Why I Built This
Whenever I started a YouTube course, I always wanted to know βHow much total time will this take?β Sure, YouTube shows individual durations, but for playlists with 50+ videos, calculating by hand is painful.
So I automated it with Python + Selenium and wrapped it in a clean GUI using Tkinter.
π To be honest, this was a time-pass project. I wasnβt in the mood to continue my actual work (learning more about Softmax Regression π ), so I coded this as a fun escape.
βοΈ Features
- π Search YouTube for any course playlist
- πΊ Fetch playlist title and creator details
- β±οΈ Calculate total video duration in hours
- π₯ Show video count and display durations (first 15 listed, rest summarized)
- π Clickable playlist link directly inside GUI
- πΌοΈ Clean interface with background image
- π₯οΈ Supports GUI mode (graphics.py) and CLI mode (main.py)
π§© Modularized Approach
The project is structured to keep things clean and reusable:
- main.py β Handles the core mechanism (YouTube scraping & analysis via Selenium).
-
graphics.py β A wrapper around
main.pythat provides a Tkinter-based GUI.
You can run main.py independently in CLI mode β the GUI is just an additional layer.
π GitHub Repository
All the code is open-source and available here:
π CourseTime Analyzer on GitHub
π¬ Feedback
Comments are open! Feel free to suggest improvements, criticize the approach, or even fork the repo and make it better. This was just a fun side project, so Iβd love to see how others take it further. π
Top comments (0)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.