A simple set of Ruby scripts that helps you mine out your Rdio listening history.
I used this script to collect my personal listening history for a dataviz project. While there is an existing REST API which auths over oauth, the history end point is not available at this time. This script fetches tokens from the web client, then re-uses the session tokens to authenticate and hit the existing history API endpoint.
Please use at own risk.
Rdio peeps, just let me know if this is a problem, I'll happily take this library down.
rake
Enter username: chanian
40 Years Back Come - Röyksopp
She's So - Röyksopp
Remind Me - Röyksopp
Royksopp's Night Out - Röyksopp
A Higher Place - Röyksopp
Poor Leno - Röyksopp
In Space - Röyksopp
Sparks - Röyksopp
Eple (Original Edit) - Röyksopp
So Easy - Röyksopp
Animal - Pearl Jam
username = 'chanian'
rdio = Rdio::History::Fetcher.new(username)
rdio.fetch.each do |song|
puts "#{song.name} - #{song.artist}"
end
# We're only doing a small batch of ~10 per fetch
# The cursor will auto advance
username = 'chanian'
rdio = Rdio::History::Fetcher.new(username)
history = []
history.concat rdio.fetch
history.concat rdio.fetch
history.concat rdio.fetch
puts history.length
rake spec
Have fun.