discogrify is a command line tool to create artist discographies as Spotify playlists.
The easiest way to install discogrify is with pipx (see here for installation of pipx itself):
pipx install discogrify
First, authenticate with Spotify:
d8y login
This will open a browser where you would be asked to login with your Spotify account and give discogrify access to it.
When done, create your playlist by providing a Spotify artist URL to d8y create
. For example the following command
will create a playlist with all albums and singles of Joy Division:
d8y create https://open.spotify.com/artist/432R46LaYsJZV2Gmc4jUV5
For more details on usage:
d8y create --help