{"id":28214,"library":"spotify-webapi","title":"spotify-webapi","description":"A lightweight Python library to fetch tracks from Spotify playlists without using the official Spotify Web API. Version 1.0.3 is current; release cadence is irregular. No longer actively maintained (abandoned by author).","status":"abandoned","version":"1.0.3","language":"python","source_language":"en","source_url":"https://github.com/ruru4143/spotify-webapi","tags":["spotify","playlist","web-scraping","unofficial","abandoned"],"install":[{"cmd":"pip install spotify-webapi","lang":"bash","label":"pip"}],"dependencies":[],"imports":[{"note":"Import the class directly, not the module.","wrong":"import spotify_webapi","symbol":"Spotify","correct":"from spotify_webapi import Spotify"},{"note":"","wrong":"","symbol":"TrackInfo","correct":"from spotify_webapi.models import TrackInfo"}],"quickstart":{"code":"from spotify_webapi import Spotify\n\nsp = Spotify()\nplaylist_id = '37i9dQZF1DXcBWIGoYBM5M'  # example playlist\ntracks = sp.get_playlist_tracks(playlist_id)\nfor track in tracks:\n    print(track.name, track.artists)","lang":"python","description":"Fetch tracks from a playlist by its Spotify ID (alphanumeric string). No authentication required."},"warnings":[{"fix":"Ensure playlist is set to public in Spotify client.","message":"Library only supports fetching tracks from public playlists. Private/unpublished playlists will fail silently or return empty.","severity":"gotcha","affected_versions":"all"},{"fix":"Use spotipy library with official API and proper authentication.","message":"The library is no longer maintained. No updates for bug fixes or Spotify API changes. Consider migrating to spotipy.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"No workaround. Use official API with spotipy instead.","message":"Library uses web scraping of Spotify Web Player; Spotify may change frontend structure causing complete failure.","severity":"breaking","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Use: from spotify_webapi import Spotify","cause":"Incorrect import style: using `import spotify_webapi` then `spotify_webapi.Spotify` instead of `from spotify_webapi import Spotify`.","error":"AttributeError: module 'spotify_webapi' has no attribute 'Spotify'"},{"fix":"Pass playlist ID string: sp.get_playlist_tracks('37i9dQZF1DXcBWIGoYBM5M')","cause":"Calling get_playlist_tracks() without the playlist ID argument.","error":"TypeError: get_playlist_tracks() missing 1 required positional argument: 'playlist_id'"},{"fix":"Add manual delays between calls with time.sleep().","cause":"Sending many requests quickly; library does not implement rate limiting or retry.","error":"requests.exceptions.HTTPError: 429 Client Error: Too Many Requests"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}