A simple Python script that sends Spotify's now playing track to one or more of the following:
- a Shoutcast server
- an Icecast server
- 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
- server = Icecast server name (without http/https)
- port = Icecast server port
- mount_point = Icecast server mount point
- admin_pass = Icecast server admin pass
- partner_id = TUNEIN_PARTNER_ID
- partner_key = TUNEIN_PARTNER_KEY
- station_id = TUNEIN_STATION_ID
- Run the script