This is a command-line tool for downloading audio or video files from YouTube.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Make sure you have Go installed on your machine. You can download the latest version of Go from the official website.
You will also need to install the yt-dlp
command-line utility. You can find instructions for installing yt-dlp
here.
Clone the repository to your local machine:
git clone https://github.com/SergioMelladoMartin/youtube-downloader.git
Change into the project directory:
cd youtube-downloader
To download an audio file from YouTube, run the following command:
go run main.go <URL> --audio
To download a video file from YouTube, run the following command:
go run main.go <URL> --video
The downloaded file will be saved to the C:\Users\%USERNAME%\Downloads
directory with the title of the YouTube video as the file name.
This project is licensed under the MIT License - see the LICENSE file for details.