Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.38 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.38 KB

YouTube Downloader

This is a command-line tool for downloading audio or video files from YouTube.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

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.

Installing

Clone the repository to your local machine:

git clone https://github.com/SergioMelladoMartin/youtube-downloader.git

Change into the project directory:

cd youtube-downloader

Usage

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.

Built With

  • Go - The programming language used
  • yt-dlp - The command-line utility for downloading YouTube videos

License

This project is licensed under the MIT License - see the LICENSE file for details.