Giter VIP home page Giter VIP logo

spotify-reminiscence's Introduction

reminiscence

What were you listening to this part of the year, last year? 2 years ago? This tool will create a playlist of songs that you listened to in the same part of the year in the past.

How it works

Select some of your playlists where you have accumulated songs over the years and reminiscence creates a playlist containing the songs that you added to those playlists around the same period as now, but in previous years.

This is the way I like to listen to music. If it is spring I like to listen to songs that I listened to in spring in past years. This brings back a lot of memories and i enjoy listening to music more. Sometimes even listening to music that I listened to last winter while being spring makes me uncomfortable.

Set up instructions

First clone the repository and cd into it

git clone https://github.com/NickSmyr/spotify-reminiscence
cd spotify-reminiscence

Then you need to have a developer account for spotify. You can create one without extra costs here.

Then you need to fetch some secrets, specifically the spotify client id and spotify client secret. For this you need to create a placeholder app, with any name. Instructions here.

Finally set the redirect url of your application as the following: http://localhost:5000/callback

Then set the following necessary environment variables. For Linux/MacOS you can do the following

export SPOTIPY_CLIENT_ID=<your client id>
export SPOTIPY_CLIENT_SECRET=<your client secret key>
export SPOTIPY_REDIRECT_URI=http://localhost:5000/callback

Then install the only requirement

pip install spotipy

Creating the reminiscence playlist

To create the playlist to bring you back seasonal memories, execute the following

python create.py

When the script starts you will be prompted to authenticate using your spotify account in a webpage.

The script will ask you to include some playlists for your reminiscence playlist and when its finished you will see a new playlist in your library.

Backup playlists

Executing

python backup.py

Will prompt you to select the playlists that you want to back up. A csv file for each playlist will be created in the spotipy_backed_up_playlists directory. Each file will contain the details of all the tracks for your playlist.

spotify-reminiscence's People

Contributors

nicksmyr avatar

Watchers

Kostas Georgiou avatar  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.