Skip to content

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RadioScrape

A super simple Ruby script to call the "Now Playing" service for a certain station and find out what is playing.

Getting Started

First you need to create and app at https://developer.spotify.com/my-applications/#!/applications. Set the callback to http://brooksgarrett.com/projects/radioscrap/callback.html. I don't log your tokens (it's pure HTML and javascript.)

Give the program your client ID and client secret to get your token link. Once you follow the link paste the code into the app and set debug to false.

You're ready to go!

Scrape.rb

ruby scrape.rb

I configure scrape to run from my cron every minute. Adjust as you like.

Playlist.rb

ruby playlist.rb

This command will generate your playlists. It will name the playlist after the station name.

About

Scrape a prominent radio service for what is playing on their stations. Then build a Spotify playlist.

Resources

Stars

7 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages