From 788bad34086b7f28b50d6df190dbaef84e675815 Mon Sep 17 00:00:00 2001 From: Christoph Rohrer Date: Sat, 6 May 2017 21:18:20 +0200 Subject: [PATCH] Update readme.md --- readme.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index a28007f..99ba7c0 100644 --- a/readme.md +++ b/readme.md @@ -8,6 +8,10 @@ More on the background of this project in my [blog post](http://blog.chrisrohrer Currently running hourly via cronjob on [this playlist](https://play.spotify.com/user/radiolistenerbot/playlist/2G76EIk09AuL58sHI9my9V) +Actually you find a growing list of playlists from multiple radio stations being crawled by the spotify account [RadiolistenerBot](https://open.spotify.com/user/radiolistenerbot). + +All those playlists are public. My bot happily accepts new followers on his profile and on his playlists! + ## Usage Before running it on the server you need to authenticate via oAuth (as the user who owns the specified playlist) locally. @@ -15,7 +19,7 @@ Before running it on the server you need to authenticate via oAuth (as the user 1. Clone this repo into a local directory 2. Copy `config.example.json` to `config.json` and insert your own credentials & playlistIds for your desired radio stations. You can obtain a clientId & clientSecret by [registering a new application](https://developer.spotify.com/my-applications/#!/applications). -There are some pre-defined and tested radio stations, they can be found in `station-examples.md`. You can define your own schemes, all you need is the URL of the playlist page of the station and three jQuery selectors: one for the playlist entry element, one for the title and one for the artist. Some radio stations (like FM4) have special markup that requires linear instead of nested search; this behaviour can be set with the `searchLinear` flag. +There are some pre-defined and tested radio stations, they can be found in `station-examples.md`. You can define your own schemes, all you need is the URL of the playlist page of the station and three jQuery selectors: one for the playlist entry element, one for the title and one for the artist. Some radio stations (like the old FM4 page) have special markup that requires linear instead of nested search; this behaviour can be set with the `searchLinear` flag. 3. Run `npm install` 4. Run `npm start ` (stationIdentifier is the name of the playlist config inside your config file.) 5. Open the displayed URL in your browser & grant permission for your app to change your playlists. This will open a page on localhost which you can close. Now you find two new files: `accessToken` and `refreshToken`. They contain the secret information to authenticate the user with spotify, so handle with care!