A command-line script to easily download YouTube videos and audio directly to your local machine.
YouTube Media Downloader is a Python script that allows you to download both video and audio formats from YouTube videos. It provides a command-line interface that makes it easy to specify the video URL, choose the desired format, and save the media to your preferred directory.
- Download YouTube videos and audio streams.
- Choose from available video and audio formats.
- Show a progress bar during download.
- Specify the output directory for downloaded media.
-
Clone the Repository:
https://github.com/TSOlami/YouTube-Downloader.git cd Youtube-Downloader -
Install Dependencies: pip install pytube tqdm
-
Run the script: python main.py
-
Follow the Prompts:
- Enter the YouTube video URL.
- Choose the desired format.
- Specify the output directory.
- Choose whether to show a progress bar.
- Choose whether to download another video
- Download Completed: Once the download is complete, the media file will be saved to the specified directory.
- Download a video:
python main.py
Contributions are welcome! If you find a bug or have an enhancement, feel free to submit a pull request.