{"id":28204,"library":"spotify-random-saved-album","title":"spotify-random-saved-album","description":"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.","status":"active","version":"0.0.8","language":"python","source_language":"en","source_url":"https://github.com/ciglenecki/spotify-random-saved-album","tags":["spotify","cli","random","album","api"],"install":[{"cmd":"pip install spotify-random-saved-album","lang":"bash","label":"pip"}],"dependencies":[{"reason":"Used for Spotify API authentication and calls","package":"spotipy","optional":false},{"reason":"Used for HTTP requests","package":"requests","optional":false}],"imports":[{"wrong":"from spotify_random_saved_album import get_random_album_url","symbol":"get_random_album_url","correct":"from spotify_random_saved_album import get_random_album_url"}],"quickstart":{"code":"from spotify_random_saved_album import get_random_album_url\nimport os\n\n# Requires SPOTIPY_CLIENT_ID, SPOTIPY_CLIENT_SECRET, SPOTIPY_REDIRECT_URI env vars\nurl = get_random_album_url()\nprint(url)","lang":"python","description":"Import the function and call it after setting Spotify API credentials as environment variables."},"warnings":[{"fix":"Set these environment variables before calling any function.","message":"The library expects SPOTIPY_CLIENT_ID, SPOTIPY_CLIENT_SECRET, and SPOTIPY_REDIRECT_URI environment variables to be set; otherwise it raises a configuration error.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure SPOTIPY_REDIRECT_URI is registered in the Spotify Developer Dashboard for your app.","message":"The redirect URI must match exactly one of the URIs registered in the Spotify Developer Dashboard (including localhost for local development).","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.0.8':25 '3.7':28 'album':5,16,23,45 'api':33,46 'cli':7,43 'develop':39 'pypi':38 'python':27 'random':3,15,44 'releas':36 'requir':26 'retriev':10 'save':4,22 'sporad':41 'spotifi':2,21,31,42 'spotify-random-saved-album':1 'tool':8 'url':12 'use':29 'user':19 'version':24 'web':32","created_at":"2026-05-09T05:54:16.199420+00:00","updated_at":"2026-05-09T05:54:16.199420+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'get_random_album_url' from 'spotify_random_saved_album' (/tmp/tmp7zuv5elj/venv/lib/python3.12/site-packages/spotify_random_saved_album/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"spotify-random-saved-album","cli_version":"usage: spotify-random-saved-album [-h] [--no-cache] [--update-cache]","type":"library","homepage":null,"github":"https://github.com/ciglenecki/spotify-random-saved-album","docs":null,"changelog":null,"pypi":"https://pypi.org/project/spotify-random-saved-album/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}