Skip to content

chanian/rdio-history

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rdio Player History

A simple set of Ruby scripts that helps you mine out your Rdio listening history.

Disclaimer

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.

Example usage from Rake

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

Example usage from Library

  username = 'chanian'
  rdio = Rdio::History::Fetcher.new(username)  
  rdio.fetch.each do |song|
    puts "#{song.name} - #{song.artist}"
  end

Example fetching multiple pages of data

  # 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

Running tests

rake spec

Have fun.

About

A simple library for fetching your Rdio listening history

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages