/yt_downloader

Download YouTube videos in any available resolution (up to 8K), or all videos from a playlist in the highest resolution (up to 720p), in .mp4 video format or .mp3 audio format.

Primary LanguagePython

YouTube Videos Downloader

A simple Python program to download YouTube videos and playlists (in mp4/mp3 format).

Dependencies

This program is based on :

  • PyTube (Downloading YouTube videos)
  • FFmpeg (Combining video and audio files, converting audio files to .mp3 and video files to .mp4)

Getting Started

You can simply execute the requirements_installer.py to automatically install all the necessary libraries, or you can install them manually using this command :

pip install pytube ffmpeg-python

Then, open the main.py file and change the dlpath to your downloads directory :

e.g. C:\Users\Username\Downloads for windows users.

e.g. /home/Username/Downloads for linux users.

... and make sure the last character is not \ or /.

Usage

  1. Run the main file.
  2. Type V or v for a single video, and P or p for a playlist.
  3. Type V or v to for MP4 video format, and A or a for MP3 audio format.
  4. Type the url of the video/playlist and wait for the video(s) to get loaded.

If you are downloading a single video, a list of all available resolutions will appear then you will have to choose one of them by typing it (e.g. 1080p).