sam's bits

ramblings on technology and other stuff
1

Export all your Last.fm scrobbles

Music listening data can be very interesting to analyse when combined with a GPS position (where did the user listen to what song?) and music data (danceability, bpm, mood) from Echonest. It could potentially show my “mood” in certain places and at certain times. With approximate speed from the GPS track you could see if on average I walk faster when listening to high-BPM music.

I’ve aquired my location history (>110000km) of the past 2 years from Google Latitude and exported it with Google Takeout to a JSON file. Getting the Last.fm data from my profile wasn’t as straight-forward, but it worked.

You need to get this Python script, that has been created by Libre.fm so their users can migrate to them from Last.fm:

Make sure you have Python installed and then execute the script like so:

./lastexport.py -u YourLastFmUsername ./scrobbles.txt

No API key or other credential is needed since everyones scrobbles are public. The script downloads all scrobbles with a unix timestamp, song title, artist, album and id into a tab seperated file.

You can download my file here.

Categories: Data Liberation

Tags: music, scrobbles, last.fm

Comments: 1 Comment

1

Comment

  • Comment by Christopher Su on 6 August 2013 10:35 am

    I keep getting errors like these:

    Exception occured, retrying in 1s: HTTP Error 403: Forbidden

    Exception occured, retrying in 5s: HTTP Error 403: Forbidden

Post a comment