Reddit Spotify Bot

Reddit threads asking for music recommendations — favorite songs, theme playlists, genre deep-cuts — tend to produce a lot of good answers. But reading through a hundred comments to find the songs, look them up one by one, and manually add them to a playlist is enough friction to not bother. I wanted a way to turn a good thread into a listenable playlist without any of that.

The bot can be summoned by anyone in a Reddit thread. When called, it pulls all comments via the Reddit API and attempts to identify any song mentioned in each one. It then queries the Spotify search endpoint to find and add each song to a new playlist. Once the thread is fully evaluated — or the playlist hits its size limit — the bot posts the playlist link as a reply to the comment that originally invoked it.

Python Reddit API (PRAW) Spotify API
All projects See playlists