Skip to content
Sdelux
Back to Code
Code

Youtube videos downloader

A small application that allows you to download YouTube videos.

View codePythonpytube

A console application written in Python for downloading YouTube videos using pytubefix. It displays the available video qualities, lets you choose one, and saves the video in the downloads/ folder.

Features

  • Displays the video’s title, author, and duration before downloading.
  • Lists the available video qualities in two groups:
  • Direct downloads: Video and audio in a single file (basic quality).
  • High quality: Video and audio downloaded separately and automatically merged using FFmpeg.
  • Attempts to download videos without signing in first and only requests Google OAuth - authentication if the video has an age restriction.
  • Provides clear error messages when a video is unavailable.