Registry / http-networking / spotify-web-downloader

spotify-web-downloader

JSON →
library1.8.1pypypiunverified

A Python CLI application for downloading songs and music videos from Spotify by analyzing Spotify URLs, fetching metadata, and sourcing audio/video from YouTube or other providers. Version 1.8.1, requires Python >=3.8. Active maintenance.

pip install spotify-web-downloader
INSTALL
IMPORT
SIG · SPOTIFY-WEB-DOWNLO
S
spotify-web-downloader
http-networkingpythonv1.8.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SpotifyDownloader
from spotify_web_downloader import SpotifyDownloader
from spotify_web_downloader import SpotifyDownloader

Initialize the downloader, provide a Spotify track URL, and download the audio.

from spotify_web_downloader import SpotifyDownloader downloader = SpotifyDownloader() track_url = "https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT" result = downloader.download_track(track_url) print(f"Downloaded: {result['title']} by {result['artist']}")
spotdl --version
Debug
Known issues
gotchaThe library may violate Spotify's Terms of Service as it bypasses official APIs. Use at your own risk; accounts can be banned.
fix
Consider using Spotify's official API and a legal streaming source.
affects: all
breakingVersion 1.8.0 removed the `--no-ytm` flag in favor of a config file. Scripts using the old flag will fail.
fix
Remove the `--no-ytm` argument and configure via `~/.config/spotify-web-downloader/config.json`.
affects: >=1.8.0, <1.8.1
Upgrade
Version history
1.8.1latest on PyPI · released Sep 17, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
1
Resources
spotify-web-downloader — pip install spotify-web-downloader · libregistry