Youtube Downloader
You can easily install and set up this script with one click using the provided batch file:
- Click the "Download .bat" button above.
- Run the
setup.bat
file. - Follow the on-screen instructions to complete the installation.
This will automate the installation of Python, required packages, and set up the environment for running the script.
This Python script allows you to download audio or video from YouTube videos. It uses the yt_dlp
library to handle the downloads.
Run the script from the command line using the following syntax:
ytdr <type> {YT_URL}
or run the script direct. Using the following.
python youtube_downloader.py <type> <url> [--audio-format <audio_format>] [--audio-quality <audio_quality>] [--video-format <video_format>] [--video-quality <video_quality>] [--output <output_folder>]
<type>: Type of download. Choose from audio, video, or both.
<url>: URL of the YouTube video you want to download.
Argparse Commands
--audio-format <audio_format>: (Optional) Audio format, default is mp3. Choose from mp3 or wav.
--audio-quality <audio_quality>: (Optional) Audio quality, default is 320. Specify the desired quality (e.g., 320 for mp3, 44100:16 for wav).
--video-format <video_format>: (Optional) Video format, default is mp4. Choose from mp4 or mkv.
--video-quality <video_quality>: (Optional) Video quality, default is 720. Specify the desired quality (e.g., 720p, 1080p, etc.).
--output <output_folder>: (Optional) Output folder for downloaded files, default is Youtube_Downloads.