noahgorstein / spotify_scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spotify Scripts

A collection of utility scripts to do some cool stuff with Spotify.

Prerequisites

  • Setup an application in Spotify's Developer Dashboard. You must have a Spotify Premium account to do so.
    • In your application, set redirect URIs required for the Authorization Code Flow. The URI does not need to be a valid web address (i.e. http://localhost:9090 is fine).

Screen Shot 2021-09-26 at 11 25 47 AM

  • Install Spotipy.

     pip3 install spotipy
  • Set the environment variable SPOTIPY_REDIRECT_URI equal to what was set in for your application in the Spotify Developer Dashboard.

     export SPOTIPY_REDIRECT_URI="http://localhost:9090"

Scripts

concatenate_playlists.py

Script Arguments

  1. Playlist name
  2. The remaining arguments are Spotify playlist IDs.
  • Example Usage:

     python3 concatenate_playlists.py playlistName playlistId1 playlistId2 playlistId3 
    

About


Languages

Language:Python 100.0%