Registry / http-networking / spotifyscraper

spotifyscraper

JSON →
library2.1.5pypypiunverified

A Python library for extracting playlist and track metadata from Spotify without requiring authentication. Version 2.1.5 uses the library's own internal parser and requests. Rapid release cadence with frequent breaking API changes.

pip install spotifyscraper
INSTALL
IMPORT
SIG · SPOTIFYSCRAPER
S
spotifyscraper
http-networkingpythonv2.1.5
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.

Spotify
from spotify_scraper import Spotify
from spotifyscraper import Spotify

Fetch a Spotify playlist by its ID (found in URL) and print the first three tracks.

from spotifyscraper import Spotify sp = Spotify() playlist = sp.get_playlist('37i9dQZF1DXcBWIGoYBM5C') print(playlist['name']) for track in playlist['tracks'][:3]: print(track['name'], '-', track['artists'])
Debug
Known issues
breakingIn v2.0.0, the entire API changed from function-based to class-based. Old code like 'import spotifyscraper; spotifyscraper.get_track(...)' will fail.
fix
Use the Spotify class and its methods (get_playlist, get_track, etc.).
affects: <2.0.0
breakingReturn types changed in v2.1.0: 'get_playlist' now returns a dict instead of a custom Playlist object. Code relying on attribute access (e.g., 'playlist.name') will break.
fix
Access data via dictionary keys: 'playlist['name']' instead of 'playlist.name'.
affects: <2.1.0
gotchaThis library does NOT use the official Spotify Web API. It scrapes public-facing data from Spotify's web pages. Data may be incomplete or break without notice.
fix
Use the official Spotify API (spotipy) if you need reliability and structured data.
affects: all
deprecatedThe 'get_track_lyrics' method is no longer functional since Spotify removed lyrics from public web endpoints in late 2024.
fix
Remove calls to 'get_track_lyrics' or catch exceptions gracefully.
affects: >=2.0.0
Upgrade
Version history
2.1.5latest on PyPI · released Jun 12, 2025
Audit
Dependencies
requestsrequiredHTTP requests to Spotify endpoints (not from official API)
Agent activity
18 hits · last 30 days
node
14
OpenAI (training)
1
Resources
spotifyscraper — pip install spotifyscraper · libregistry