Skip to content

christianboyle/playlists

Repository files navigation

🥳 https://playlists.christianboyle.com 🥳

Motivation

I'm a big fan of making playlists on SoundCloud and made a bunch this year.

Then I saw https://playlists.design and thought it was pretty cool, with two exceptions:

  • They use Spotify 🤮
  • My desktop sounds like it's about to achieve liftoff when you start scrolling 🚁

How To

Generate playlists.json

  1. update the username you want to get here
  2. pip install -r requirements.txt
  3. python scrape-playlists.py
  4. output file is soundcloud_playlists.json
  5. modify as needed and save as playlists.json

Install and Build

Important

A registered SoundCloud app, with API access for Client ID and Client Secret

  1. git clone [email protected]:christianboyle/playlists.git
  2. mv .env.example .env
  3. fill in .env with Client ID and Client Secret
  4. docker-compose up --build
  5. should see app-1 | INFO Accepting connections at http://localhost:8087
  6. when done docker-compose down

Note

The SoundCloud API refresh token is cached and rotated as-needed to avoid rate-limiting. The .env values are injected at runtime, when the container starts, to avoid exposing in bundle.js.

Credits