Generating charts from my Last.fm listening data
Go to file
2020-12-14 13:33:11 -05:00
src Initial commit: scraped data and chart.json 2020-12-14 13:25:37 -05:00
.gitignore Initial commit: scraped data and chart.json 2020-12-14 13:25:37 -05:00
artists.json Initial commit: scraped data and chart.json 2020-12-14 13:25:37 -05:00
Cargo.lock Initial commit: scraped data and chart.json 2020-12-14 13:25:37 -05:00
Cargo.toml Initial commit: scraped data and chart.json 2020-12-14 13:25:37 -05:00
chart.json Initial commit: scraped data and chart.json 2020-12-14 13:25:37 -05:00
chart.png Add generated chart and README 2020-12-14 13:33:11 -05:00
README.md Add generated chart and README 2020-12-14 13:33:11 -05:00
tags.json Initial commit: scraped data and chart.json 2020-12-14 13:25:37 -05:00

Last.fm Stats

This is a tool I wrote to generate year-end charts and graphs for my listening data in Last.fm. The binary downloads artists listened to and tags associated with each to files. Then I use vega-lite to display charts based on the data.

Right now it just generates this, my top played genres of the year:

Top Genre Tags Played in 2020

.env file

Running the downloads requires you set two variables in the environment:

LASTFM_USER=thallada
LASTFM_API_KEY=<apikey-goes-here>

Generating chart

I couldn't get vg2png to generate a chart that had bars for some reason, but if I copy the JSON from tags.json into "data": { "values": [...] } and then paste that into the online editor it works.