Registry / http-networking / spotifynews

spotifynews

JSON →
library0.1.4pypypiunverified

A small Python library for fetching news about Spotify artists and playlists. Current version 0.1.4, released infrequently. It wraps the Spotify Web API and provides simple data structures for tracks, albums, and artists.

pip install spotifynews
INSTALL
IMPORT
SIG · SPOTIFYNEWS
S
spotifynews
http-networkingpythonv0.1.4
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.

SpotifyNews
from spotifynews import SpotifyNews
Main client class.

Initialize with Spotify API credentials, then fetch an artist by Spotify URI.

from spotifynews import SpotifyNews import os client = SpotifyNews(client_id=os.environ.get('SPOTIFY_CLIENT_ID', ''), client_secret=os.environ.get('SPOTIFY_CLIENT_SECRET', '')) artist = client.get_artist('spotify:artist:0TnOYISbd1XYRBk9myaseg') print(artist.name)
Debug
Known issues
gotchaThe library expects Spotify URIs (e.g., 'spotify:artist:...'), not Spotify IDs. Passing an ID may fail silently or return None.
fix
Always use full URIs like 'spotify:artist:...' or 'spotify:track:...'.
affects: all
gotchaThe library does not handle token refresh. Access tokens expire after 1 hour and the client does not automatically refresh, so long-running scripts may break.
fix
Reinitialize the client or manage token refresh manually using a separate Spotify API library.
affects: all
deprecatedThe method 'get_new_releases' is deprecated in favor of 'get_spotify_new_releases' since v0.1.2.
fix
Use 'get_spotify_new_releases' instead.
affects: >=0.1.2
gotchaThe library does not validate playlist URIs. If you pass a malformed URI, it may raise an unhelpful AttributeError.
fix
Ensure URIs follow the format 'spotify:playlist:...' and are URL-encoded if necessary.
affects: all
Upgrade
Version history
0.1.4latest on PyPI · released Mar 27, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
6
Amazon
1
OpenAI (training)
1
Resources
spotifynews — pip install spotifynews · libregistry