This package is a Youtube video download package, for more detail refer https://github.com/ytdl-org/youtube-dl for more download options.
This tool is meant to be used to download CC0 licenced content, we do not support nor recommend using it for illegal activities.
git clone https://github.com/kkdai/youtube.git && cd youtube
go run ./cmd/youtubedrPlease ensure you have installed Go 1.23 or later.
go install github.com/kkdai/youtube/v2/cmd/youtubedr@latestbrew install youtubedrpkg install youtubedr- archlinux (thanks to cjsthompson)
 - Termux package (thanks to kcubeterm)
 - Homebrew (thanks to kkc)
 
It's really simple to use, just get the video id from youtube url - ex: https://www.youtube.com/watch?v=rFejpH_tAHM, the video id is rFejpH_tAHM
youtubedr download rFejpH_tAHM
youtubedr download https://www.youtube.com/watch?v=rFejpH_tAHMPlease check out the example_test.go for example code.
- 
Download video from dotGo 2015 - Rob Pike - Simplicity is Complicated
youtubedr info https://www.youtube.com/watch?v=rFejpH_tAHM Title: dotGo 2015 - Rob Pike - Simplicity is Complicated Author: dotconferences -----available streams----- itag: 18 , quality: medium , type: video/mp4; codecs="avc1.42001E, mp4a.40.2" itag: 22 , quality: hd720 , type: video/mp4; codecs="avc1.64001F, mp4a.40.2" itag: 137 , quality: hd1080 , type: video/mp4; codecs="avc1.640028" itag: 248 , quality: hd1080 , type: video/webm; codecs="vp9" ........ - 
Download video from dotGo 2015 - Rob Pike - Simplicity is Complicated
youtubedr download https://www.youtube.com/watch?v=rFejpH_tAHM - 
Download video from dotGo 2015 - Rob Pike - Simplicity is Complicated to current directory and name the file to simplicity-is-complicated.mp4
youtubedr download -d ./ -o simplicity-is-complicated.mp4 https://www.youtube.com/watch?v=rFejpH_tAHM - 
Download video from dotGo 2015 - Rob Pike - Simplicity is Complicated with specific quality
youtubedr download -q medium https://www.youtube.com/watch?v=rFejpH_tAHMInstallation of ffmpeg is necessary for hd1080
ffmpeg //check ffmpeg is installed, if not please download ffmpeg and set to your PATH. youtubedr download -q hd1080 https://www.youtube.com/watch?v=rFejpH_tAHM - 
Download video from dotGo 2015 - Rob Pike - Simplicity is Complicated
youtubedr download -q 18 https://www.youtube.com/watch?v=rFejpH_tAHM 
- Parse the video ID you input in URL
- ex: 
https://www.youtube.com/watch?v=rFejpH_tAHM, the video id isrFejpH_tAHM 
 - ex: 
 - Get video information via video id.
- Use URL: 
http://youtube.com/get_video_info?video_id= 
 - Use URL: 
 - Parse and decode video information.
- Download URL in "url="
 - title in "title="
 
 - Download video from URL
- Need the string combination of "url"
 
 
- https://github.com/ytdl-org/youtube-dl
 - https://github.com/lepidosteus/youtube-dl
 - 拆解 Youtube 影片下載位置
 - iawia002/annie
 - How to get url from obfuscate video info: youtube video downloader with php
 
It is one of my project 52.
This package is licensed under MIT license. See LICENSE for details.