A script that emails you about new releases from Spotify artists you’re interested in.
just bundleThe output is bundle/music-release-notifier.js.
Create a .env file like this:
SPOTIFY_CLIENT_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
SPOTIFY_CLIENT_SECRET=yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
SMTP_HOST=example.com
SMTP_PORT=465
EMAIL_USER=foo@example.com
EMAIL_PASS=examplePasswordPut this file in the same directory as the music-release-notifier.js file.
Run:
node path/to/music-release-notifier.js path/to/configBefore you start it you need to add a subscriptions.yaml file in
path/to/config:
email: foo@gmail.com
artists: # Spotify artist ids
- 6yhD1KjhLxIETFF7vIRf8B # you can also put comments so you know what artist the ids are for
- 7Ln80lUS6He07XvHI8qqHH
# etcTo obtain the Spotify artist id, find the artist on Spotify, and copy the link to the artist (if using the app, right-click on the artist name and click ‘Copy link to artist’ in the ‘Share’ menu). The link should be something like this:
https://open.spotify.com/artist/XXXXXXXXXXXXXXXXXXXXXX?si=YYYYYYYYYYYYYYYYYYYYYY
The id is XXXXXXXXXXXXXXXXXXXXXX. There may or may not be a
?si=YYYYYYYYYYYYYYYYYYYYYY on the end of the URL which you can ignore.