Skip to content

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

Notifications You must be signed in to change notification settings

brooksgarrett/RadioScrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages