DEV/other things

yt-dpl youtube mp3 리스트 다운로드 (with 썸네일, 메타데이터, 프리미엄)

석봉 2023. 2. 9. 15:42

1. Scoop 설치 (window에서 powershell을 사용한다면...)

이 부분은 어떤 OS, 어떤 방식으로 패키지를 받을 것인지에 따라 선택

https://www.lesstif.com/software-architect/scoop-admin-windows-51282748.html

 

Scoop - admin 권한이 필요없는 Windows 용 패키지 매니저

만약 scoop 을 다른 폴더(예: d:\app\scoop)에 설치하려면 power shell 을 실행하고 다음 명령어를 입력합니다. [environment]::setEnvironmentVariable('SCOOP','D:\App\\Scoop','User') $env:SCOOP='D:\Applications\Scoop' iex (new-object

www.lesstif.com

 

2. yt-dlp 패키지 다운로드

https://github.com/yt-dlp/yt-dlp

 

GitHub - yt-dlp/yt-dlp: A youtube-dl fork with additional features and fixes

A youtube-dl fork with additional features and fixes - GitHub - yt-dlp/yt-dlp: A youtube-dl fork with additional features and fixes

github.com

 

3. (scoop를 쓴다는 가정) ffmpeg 패키지 설치 (ffmpeg가 이미 설치되는 방식이면 패스)

scoop install ffmpeg

 

4. 썸네일, 메타데이터를 포함하여(+ 크롬 쿠키 이용하여 프리미엄 권한까지) 노래 리스트 다운로드

* 혹시 안된다면 링크를 '' 로 묶어주자.

// 프리미엄의 경우(쿠키를 포함한 경우) 255k 까지 다운 가능하다고 알고 있음.
yt-dlp -o "%(title)s.%(ext)s" --ignore-errors -x -i --audio-format mp3 --audio-quality 192k --embed-thumbnail --add-metadata --cookies-from-browser Chrome --yes-playlist <<youtu** music list url>>
 

 

+ Mac os 에서는 brew install yt-dlp와 brew install ffmpeg 후 위 명령어를 입력하면 된다.