-
Notifications
You must be signed in to change notification settings - Fork 1
Python script to backup/convert your Spotify playlists into the XSPF format.
License
keeperofkeys/xspfify
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Make sure python 3.0 or later is installed on your machine Visit https://developer.spotify.com/console/get-playlist-tracks/ and obtain an OAUTH token for your Spotify account. These last a limited amount of time (1 hour?) but you can get another one if it expires - in a text editor, open the xspfify/main.py file and edit the following values: - set the value of OAUTH_TOKEN to the value obtained above - set the value of SPOTIFY_USERNAME to your username (otherwise you'll end up with copies of my playlists!) - set the value of OUTPUT_PATH to a directory path that exists on your computer - open the console and navigate to the xspfify directory, then run the following commands, one at a time: > python3 -m venv venv > source venv/bin/activate (venv)> easy_install requests (venv)> python >>> import main >>> main.backup_playlists_to_xspf() XSPF is an open source format for portable playlists. (https://www.xspf.org/) This script produces a minimal playlist with just artist name and song title, for maximum compatibility. It should be easy to add additional fields to the output, by modifying the get_basic_track_details() method.
About
Python script to backup/convert your Spotify playlists into the XSPF format.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published