Registry / data / spotify2csv

spotify2csv

JSON →
library0.4.2pypypiunverified

A Python library to convert Spotify URLs (tracks, playlists, albums) into CSV files containing track info like name, artist, and album. Current version: 0.4.2. Release cadence: infrequent.

pip install spotify2csv
INSTALL
IMPORT
SIG · SPOTIFY2CSV
S
spotify2csv
datapythonv0.4.2
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.

Spotify2CSV
from spotify2csv import Spotify2CSV
from spotify2csv import Spotify2CSV

Initialize with Spotify API credentials, then call one of the conversion methods: track_to_csv, playlist_to_csv, album_to_csv.

from spotify2csv import Spotify2CSV import os client_id = os.environ.get('SPOTIFY_CLIENT_ID') client_secret = os.environ.get('SPOTIFY_CLIENT_SECRET') s2c = Spotify2CSV(client_id, client_secret) # Convert a Spotify playlist URL to CSV s2c.playlist_to_csv('https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M', 'playlist.csv')
Debug
Known issues
breakingRequires a Spotify Developer account and valid client_id/client_secret. Without these, all methods will raise an error.
fix
Create an app at https://developer.spotify.com/dashboard and set environment variables SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET.
affects: all
gotchaCSV file path must be writable; if the file exists, it will be overwritten without warning.
fix
Ensure the output directory exists and the file is not opened elsewhere.
affects: all
gotchaThe library does not support track IDs; you must provide full URLs (e.g., https://open.spotify.com/track/...).
fix
Use the URL format as shown in the Spotify share menu.
affects: all
Upgrade
Version history
0.4.2latest on PyPI · released Feb 13, 2018
Audit
Dependencies
spotipyrequiredUsed for interacting with Spotify Web API
Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
1
Resources
spotify2csv — pip install spotify2csv · libregistry