Downloading and Analyzing CD1025′s Playlist CD1025 is an - TopicsExpress



          

Downloading and Analyzing CD1025′s Playlist CD1025 is an “alternative” radio station here in Columbus. They are one of the few remaining radio stations that are independently owned and they take great pride in it. For data nerds like me, they also put a real time list of recently played songs on their website. The page has the most recent 50 songs played, but you can also click on “Older Tracks” to go back in time. When you do this, the URL ends “now-playing/?start=50”. If you got back again, it says “now-playing/?start=100”. Using this structure, I decided to see if I could download all of their historical data and see how far it goes back. In the code below, I use the XML package to go to the website and download the 50 songs and then increment the number by 50 to find the previous 50 songs. I am telling the code to keep doing this until I get to January 1, 2012. library(ggplot2) theme_set(theme_bw()) library(XML) library(lubridate) library(sqldf) startNum = 0 while (TRUE) { theurl
Posted on: Wed, 21 Aug 2013 08:54:59 +0000

Trending Topics



Recently Viewed Topics




© 2015