Skip to main content

A python application to back up your "Liked Songs" library from Spotify to a JSON file

Project description

spotify_tracks_archiver

PyPi codecov pre-commit.ci status

A way to back up your "Liked Songs" library from Spotify to a JSON file.

Set up

  1. Set up a virtualenv and install this project into it.

    python -m pip install spotify_tracks_archiver
    
  2. Create an app at https://developer.spotify.com/dashboard/applications and save the Client ID and Client Secret into a file called .env like this (or set them as individual environmental variables):

    CLIENT_ID="..."
    CLIENT_SECRET="..."
    
  3. Run spotify_tracks_archiver --print-secrets --dry-run and authenticate. This should print your Refresh Token and save it to your .env file (or set it as an environmental variable):

    ...
    REFRESH_TOKEN="..."
    
  4. You're done, execute spotify_tracks_archiver and pipe it into a file and/or automate the process on some CI (example on GitHub Actions).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spotify_tracks_archiver-1.0.4.tar.gz (9.9 kB view hashes)

Uploaded Source

Built Distribution

spotify_tracks_archiver-1.0.4-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page