Giter Site home page Giter Site logo

spotifyexport's Introduction

spotifyexport

A python project to export Spotify Playlists so that they can be imported to other locations or analyzed further.

This project started as an idea if I wanted to migrate my Spotify Playlists to my own home server or if I wanted to move to another subscription service and compare song offerings. Additional ideas include analyzing tracks for genre breakdowns, artist prevalence, etc.


Requirements: • Python • Spotify Account • Spotify Developer Account (free)

Note, the Spotify Developer Account will provide the API client secret and ID needed for this to analyze your playlists.


Three files are included in this repo.

  1. playlistexport.py - Queries the Spotify API for your playlist information. Just update the API portion (lines 8 and 9) with your Spotify Developer information. Outputs the query as a CSV which can be analyzed further.
  2. addgenres.py - Queries the artist information and appends the CSV for genres.
  3. viewjson.py - For troubleshooting/verification. Reports the track count for Query.

Example Output:
playlistexport.py: playlist_name, track_name, artist_name, album_name, release_date, duration_s, popularity FAVrite JAMs, 1.3_5-da3m0nsneverstop.caf, Mac Quayle, Mr. Robot, Vol. 1 (Original Television Series Soundtrack), 6/3/2016, 130.404, 38 addgenres.py: playlist_name, track_name, artist_name, album_name, release_date, duration_s, popularity, genres FAVrite JAMs, 1.3_5-da3m0nsneverstop.caf, Mac Quayle, Mr. Robot, Vol. 1 (Original Television Series Soundtrack), 6/3/2016, 130.404, 38, soundtrack


Feel free to branch off and get this to import into other services.

spotifyexport's People

Contributors

palvaran avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.