Scripts2026年7月3日·1 分钟阅读

spotDL — Download Spotify Music from the Command Line

Open-source CLI tool that downloads Spotify playlists and songs with album art and metadata by matching tracks on YouTube.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
spotDL
直接安装命令
npx -y tokrepo@latest install cb195537-76da-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

spotDL finds songs from Spotify playlists and albums on YouTube and downloads them with correct metadata, album art, and lyrics. It bridges the gap between Spotify's catalog and offline listening without needing a premium subscription.

What spotDL Does

  • Downloads individual tracks, albums, playlists, and artist discographies from Spotify links
  • Automatically matches Spotify tracks to YouTube audio sources
  • Embeds album art, lyrics, and ID3 metadata into downloaded files
  • Supports output formats including MP3, FLAC, OGG, OPUS, and M4A
  • Provides a built-in web UI for browser-based downloading

Architecture Overview

spotDL uses the Spotify Web API to fetch track metadata and playlist information, then searches YouTube Music for matching audio. It downloads audio via yt-dlp, converts it with FFmpeg, and embeds metadata using mutagen. The matching algorithm scores candidates by title, artist, and duration similarity.

Self-Hosting & Configuration

  • Requires Python 3.8+ and FFmpeg installed on the system
  • Install via pip: pip install spotdl or use the Docker image
  • Configure output format with --output-format mp3 or --output-format flac
  • Set download directory with --output "{artist}/{album}/{title}.{output-ext}"
  • Launch the web UI with spotdl web for a browser-based interface

Key Features

  • Syncs playlists so only new or changed tracks are re-downloaded
  • Multi-threaded downloads for faster batch processing
  • Built-in web interface with drag-and-drop Spotify link support
  • Pre-built binaries available for Windows, macOS, and Linux
  • Preserves playlist ordering and folder structure

Comparison with Similar Tools

  • yt-dlp — General-purpose video/audio downloader; spotDL adds Spotify metadata matching
  • Deemix — Downloads from Deezer; spotDL targets Spotify via YouTube
  • Zotify — Direct Spotify stream ripper; spotDL uses YouTube as the audio source
  • savify — Similar concept but less actively maintained than spotDL

FAQ

Q: Does spotDL download directly from Spotify? A: No. It reads metadata from Spotify and downloads the matching audio from YouTube.

Q: What audio quality can I expect? A: Quality depends on the YouTube source, typically up to 256 kbps AAC or equivalent.

Q: Can I sync an entire library? A: Yes. Use spotdl sync with a playlist URL to keep a local folder in sync.

Q: Is FFmpeg required? A: Yes. FFmpeg handles audio conversion and is required for all output formats.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产