Skip to content

Instantly share code, notes, and snippets.

View stedmanrh's full-sized avatar

Stedman Halliday stedmanrh

View GitHub Profile
@stedmanrh
stedmanrh / skrrtStats.js
Last active January 6, 2023 00:52
Display Spotify streaming stats for your favorite artist (hours, days, and unique songs listened with a list of top tracks). Place this file in the same directory as `MyData` after downloading and unzipping your Spotify data. Customize the constants up top then run with Node.js.
const ARTIST = "Yung Skrrt"; // substitute any artist (ensure exact match)
const TOP_TRACKS = 21; // number of top trackx to display
// time conversion constants
const MS_IN_HR = 3600000;
const HRS_IN_DAY = 24;
// GOTTA HIT THE STORAGE SPOT, GET UP IN THE STASH!
// retreive and consolidate streaming data
const streams0 = require("./MyData/StreamingHistory0.json");