Gotubedl is a Golang package used to download videos from YouTube.
- Support for downloading videos from YouTube.
- Download videos in various formats (MP4, MKV, MOV, MP3, M4A, AAC, FLAC, Opus, etc.).
- Choose video quality.
- List and preview videos.
- Adjust download speed.
- Split videos into parts during download.
- Save various metadata during download.
To install Gotubedl, use the following command:
go get github.com/Alsond5/gotubedl
To use Gotubedl, use the following code:
yt, err := gotubedl.Init("https://www.youtube.com/watch?v=un6ZyFkqFKo")
if err != nil {
fmt.Println(err)
return
}
yt.Streams().GetHighestResolution().Download("", "", 15)
To see Gotubedl's help menu, use the following command:
gotubedl -h
Gotubedl is developed as an open-source project on GitHub. To contribute, follow these steps:
- Fork it.
- Make changes.
- Run tests.
- Send a pull request.
Gotubedl is licensed under The Unlicense.