Ron Bronson

Blog

A musical retrospective with Python & D3.js

I've done lots of random music analysis over the years — Spotify Wrapped, Last.fm charts, playlists for every occasion — but never anything quite like this.

The result is Ron's Listening Journey — 21 years of scrobble data, 468,910 plays across 45,647 artists, visualized with genre breakdowns, top songs by year (with 30-second previews), my vinyl collection cross-referenced with my listening history, and a bunch of other data I'd never looked at before.

My friend Joel Goodman shared his listening timeline with me the other day. He'd built a Python script that pulls your Last.fm data and turns it into something you can actually explore. I thought it'd be fun to put my own spin on it, so I remixed it

Joel's Python scripts pull data from the Last.fm API. I added the Discogs API for the vinyl stuff. My front end is vanilla HTML/CSS/JS with D3.js for the charts. Audio previews come from the iTunes Search API. Album art from Deezer. For now, it's hosted on GitHub Pages but eventually it'll point to my personal domain.

My inspiration was something from The Pudding.

It was a lot of fun to look back at the tunes. Now you can too.

Check it out →