Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.
/ spori.fi Public archive

Creates and updates a playlist named "Discover Weekly Albums" with the *albums* from your Discover Weekly.

License

Notifications You must be signed in to change notification settings

esolitos/spori.fi

Repository files navigation

Spotify Discovery Weekly Albums

Warning

Due to recent changes on Spotify's Web API this application is now useless.

Not happy? Feel free to join the crowd of people yelling at the wall in Spotify's forum.

This repo will now be archived, as it serves no purpouse anymore.


This simple script offers the ability to create a "Discover Weekly Albums" playlist containing the albums of the songs from Spotify's "Discover Weekly".

How to run

There are a couple of ways to run this script, you could simply run it via CLI or you can do all via a browser. The first option still requires a browser to run the OAuth authentication process 'tho.

In either of the two configurations you'll need Pipenv to install the required libraries. provide the OAuth client id and secret as required by Spotipy, those should be passed as environment variables:

export SPOTIPY_CLIENT_ID='your-spotify-client-id'
export SPOTIPY_CLIENT_SECRET='your-spotify-client-secret'

Running without http server (only CLI)

The script spotify_weekly.py can be run via

export REDIRECT_HOST='localhost:80'

Configuration overview

All configuration is done via environment variables

Name Required Description
SPOTIPY_CLIENT_ID Yes Oauth Client ID, by Spotify
SPOTIPY_CLIENT_SECRET Yes Oauth Client Secret, by Spotify
OAUTH_CACHE_FILE No (Only HTTP) Sets the oauth cache file path. Must be writable.
SERVER_HOST No (Only HTTP) Http server IP (Default: 127.0.1.1)
SERVER_PORT No (Only HTTP) Http server Port (Default: 8080
REDIRECT_HOST No (Only HTTP) Redirect hostname for Spotify oauth. (Default: "$SERVER_HOST:$SERVER_PORT")

About

Creates and updates a playlist named "Discover Weekly Albums" with the *albums* from your Discover Weekly.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •