Share your repls and programming experiences

← Back to all posts
Make an instrumental version of your Spotify playlist!
h
jajoosam (578)

wordLess finds instrumentals for songs from your spotify playlist, and loads them up into a shareable page. More in this tweet!

Check it out 👉 https://wordless.4ty2.fun

Demo 🎥

Commentshotnewtop
amasad (1419)

Oh cool! I've always wanted something like that. Can you share some of the technical details?

jajoosam (578)

@amasad For sure!

The Spotify Web API is great to work with, so it was pretty easy to get auth set up - and could fetch all entries in playlists. From there I fed things in to the youtube API and searched for trackName + artist instrumental and took the first result - that worked well, but the youtube API is super limited (only 1k searches/day).

That's why I did the same, but instead of using the API - I scraped the youtube search page with https://page.rest (lets me do 100k searches/day for $5/year!)

From there, I have a mustache template where I put in all the video IDs and album covers from Spotify - that plays an iframe of instrumental tracks. I also wrote some super ugly code(but it works!) to shuffle, show tracks playing next and video controls. btw, it'd be awesome if replit added syntax highlighting for .mustache

I hope this makes sense ^^

ArchitMahale (1)

is this broken? do I have to have spotify open in a tab when i click connect?