Skip to content
/ KEXP Public

Fetch the last two weeks of the KEXP Playlist and create a Spotify Playlist based on the most-played artists.

License

Notifications You must be signed in to change notification settings

simra/KEXP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KEXP -> SPOTIFY

Spotify Setup

Visit https://developer.spotify.com/dashboard/applications to create a clientid.

Be sure to white-list a redirect URI (Eg https://localhost:8080)

The redirect URI doesn't have to be functional but you will need to copy it from your browser when prompted.

I manually created an empty playlist in Spotify called "KEXP Weekly". It can also be done programmatically but this was most straightforward.

Public link to my version of the playlist: https://open.spotify.com/playlist/09yfdQAMb5FUeHTwYR0Ruc?si=4062lbLVQpGPVckqLXDe7g

Methodology

Daily KEXP playlists are cached to avoid over-querying. We're hitting the endpoint that serves the main kexp.org web page. BE POLITE!

We count up total plays by artist and choose the top 25. Nothing special is done to manage ties. For each song by the artist that was played we first do an 'artist:','track:' search for an exact match, and if nothing comes up we fall back to keyword search by artist and track.

We also add a special bonus track at the end, just for the lols.

Prerequisites:

pip install spotipy

I made some minor revisions to my spotipy installation to bring it up to date. You may have to troubleshoot calls to the module to get things working. Reach out to me if you get stuck.

About

Fetch the last two weeks of the KEXP Playlist and create a Spotify Playlist based on the most-played artists.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages