Registry / http-networking / spotify-random-saved-album

spotify-random-saved-album

JSON →
library0.0.8pypypiunverified

A CLI tool that retrieves a URL to a random album from a user's Spotify saved albums. Version 0.0.8 requires Python >=3.7, uses the Spotify Web API, and is released on PyPI. Development is sporadic.

pip install spotify-random-saved-album
INSTALL
IMPORT
SIG · SPOTIFY-RANDOM-SAV
S
spotify-random-saved-album
http-networkingpythonv0.0.8
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.

get_random_album_url
from spotify_random_saved_album import get_random_album_url
from spotify_random_saved_album import get_random_album_url

Import the function and call it after setting Spotify API credentials as environment variables.

from spotify_random_saved_album import get_random_album_url import os # Requires SPOTIPY_CLIENT_ID, SPOTIPY_CLIENT_SECRET, SPOTIPY_REDIRECT_URI env vars url = get_random_album_url() print(url)
spotify-random-saved-album --version
Debug
Known issues
gotchaThe library expects SPOTIPY_CLIENT_ID, SPOTIPY_CLIENT_SECRET, and SPOTIPY_REDIRECT_URI environment variables to be set; otherwise it raises a configuration error.
fix
Set these environment variables before calling any function.
affects: all
gotchaThe redirect URI must match exactly one of the URIs registered in the Spotify Developer Dashboard (including localhost for local development).
fix
Ensure SPOTIPY_REDIRECT_URI is registered in the Spotify Developer Dashboard for your app.
affects: all
Upgrade
Version history
0.0.8latest on PyPI · released Oct 17, 2022
Audit
Dependencies
spotipyrequiredUsed for Spotify API authentication and calls
requestsrequiredUsed for HTTP requests
Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
spotify-random-saved-album — pip install spotify-random-saved-album · libregistry