Skip to content

myh2910/music-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

music-downloader

Simple music and video downloader based on yt-dlp. Visit here to see all the supported websites.

Requirements

Windows

Arch Linux

  • sudo pacman -S ffmpeg atomicparsley

Usage

from music_downloader import download

# Download playlist and export to M3U and SMPL
download("https://www.youtube.com/playlist?list=PLOHoVaTp8R7dfrJW5pumS0iD_dhlXKv17", export_to=["m3u", "smpl"])

# Download video in MP4 format
download("https://www.youtube.com/watch?v=DPJL488cfRw", ext="mp4")

# Download playlists in a same directory and export to SMPL
for url in [
    "https://www.youtube.com/playlist?list=OLAK5uy_nK7I5PC-l1wBk51voQI0cXgU1nFRp89gI",
    "https://www.youtube.com/playlist?list=OLAK5uy_mJQgJg3fqotcUcRs5AijgBLfderDqIEwE"
]:
    download(url, outdir="Music/Classical", smpl_outdir="/storage/emulated/0/Music/Classical", export_to=["smpl"])

Releases

No releases published

Packages

No packages published

Languages