IK Imran Khalid

CS & ML Foundations 2 weeks Solo Project Completed

Media Downloader Utility

Lightweight Python Utility for Offline Media and Datasets

Media Downloader Utility project cover

Overview

A clean Python command-line utility for saving lecture videos and audio streams locally, built for offline study and dataset preparation without ad-heavy third-party download sites.

The problem

Researchers and creators often need offline access to educational lectures and video samples, but browser-based download sites are slow, ad-laden and unreliable for batch work.

The solution

Wrapped stream selection in a small Python CLI: pick format and quality, download to a target folder, and report progress. Failures are retried and partial files are cleaned up so batch runs leave no broken artifacts.

Project gallery

Technical architecture

CLI wrapper around stream extraction with safe file handling

Stream Selection

Lists available formats and picks the best audio or video stream for the requested quality.

Download Manager

Resumable downloads with retry and progress reporting for batch use.

File Hygiene

Sanitized filenames, collision handling and cleanup of partial outputs.

Methodology

  1. Kept the interface to a single command with optional flags
  2. Added retry and cleanup so interrupted runs are safe to repeat
  3. Tested against playlists and long single videos

Results & impact

CLI Interface One command with flags
Yes Resumable Interrupted downloads recover
Automatic Cleanup No partial files left behind

Key impact

  • Supported offline study and dataset collection
  • Removed dependence on ad-heavy download sites
  • Became a reusable helper for audio experiment datasets

Challenges & solutions

Unreliable Connections

Retry with backoff and resumable partial downloads

Technologies used

Pythonyt-dlpFFmpegCLI DesignFile Handling