A simple Python script that sends Spotify's now playing track to a Shoutcast server and/or TuneIn Radio AIR API. Uses spotipy to retrieve song info from Spotify.
- First, create a web app at Spotify, here. (Use http://localhost as a redirect uri).
- Create a config.txt file on the script folder, by copying the config-sample.txt and modifying the values below:
- client_id = SPOTIFY_APP_CLIENT_ID (see here)
- client_secret = SPOTIFY_APP_SECRET_KEY
- redirect_uri = SPOTIFY_APP_REDIRECT_URL (with http/https)
- server = SHOUTCAST_SERVER_NAME (without http/https)
- port = SHOUTCAST_SERVER_PORT
- admin_pass = SHOUTCAST_SERVER_ADMIN_PASS
- partner_id = TUNEIN_PARTNER_ID
- partner_key = TUNEIN_PARTNER_KEY
- station_id = TUNEIN_STATION_ID
- Run the script