Spotify heavily personalizes auto-generated playlists like Song Radio based on the music you've listened to in the past. But sometimes you want to listen to Song Radio precisely to hear some fresh songs outside of your habitual listening realm!
Spoqify is an MIT-licensed dead-simple service that allows you to access
Spotify playlists like an anonymous user. When looking at a Spotify playlist,
just replace the t
in spotify.com
with a q
, so that your address bar
reads https://open.spoqify.com/...
, then hit Return and you will be forwarded
to an anonymized version of that playlist.
Alternatively, use the form at spoqify.com.
To run Spoqify locally, follow these steps:
- Create and activate a virtual environment:
python -m virtualenv .venv && source .venv/bin/activate
- Install Spoqify's requirements:
pip install -r requirements.txt
- Copy
.env-example
to.env
and replace the variable values with your app and user credentials (you can see the Spotify Client ID and Secret at your app dashboard, and your Spotify User ID in the URL of your Spotify profile) - Run
QUART_APP=spoqify.app:app python -m quart init
and follow the instructions to authenticate your Spoqify instance against Spotify (this should only be necessary once) - Start the development server via
python -m spoqify
- You should now be good to go! Try running this command:
curl http://localhost:5000/anonymize/37i9dQZF1E8GPlttUvOQfg
- If you want to play around with the "user interface", modify the files in
the
docs
folder, replacingopen.spoqify.com
withlocalhost:5000
(or your own domain if you have publicly deployed your Spoqify instance), and adjust theAccess-Control-Allow-Origin
value inspoqify.routes.anonymize()
tonull
(if you open your files locally) or your domain (if set up) or*
(if you can't be arsed to figure out the correct setting ;))