Simple music and video downloader based on yt-dlp. Visit here to see all the supported websites.
pip install -r requirements.txt
- Install FFmpeg and AtomicParsley.
- Unzip
ffmpeg-release-full.7z
from https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7z and move the filesffmpeg.exe
andffprobe.exe
frombin
folder to this repository. - Unzip
AtomicParsleyWindows.zip
from https://github.com/wez/atomicparsley/releases/latest and move the fileAtomicParsley.exe
to this repository.
sudo pacman -S ffmpeg atomicparsley
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"])