Thursday, May 29, 2008

Keeping up with the radio

A local radio station, Jammin 105.9, often plays catchy 90s dance and break beats. When I hear something that I'd like to mix in Ableton Live, I need to catch the song title or artist. That doesn't go so well, so I wrote a php shell script to keep a list of everything the station plays.


Jammin lists their previous 10 tracks played on their website, so it's easy to scrape. The script reads the site every 30 minutes and records artist, song title, and the time played. Then it queries skreemr.com for a download url and saves the information in a file.

No comments: