Skip to content

Instantly share code, notes, and snippets.

View MikeRich88's full-sized avatar

Mike Richardson MikeRich88

View GitHub Profile
@MikeRich88
MikeRich88 / shazam.sh
Last active April 19, 2026 22:06
Dump Shazam library on macOS
# copy and paste the line corresponding to desired output
# stupid security crap in the OS might mean you have to give Terminal permissions or something, I dunno.
# Output format: "Artist - Title"
# Sorted by artist, remove duplicates.
sqlite3 ~/Library/Application\ Support/com.apple.shazamd/ShazamLibrary.sqlite "select ZSUBTITLE, ZTITLE from ZSHTRACKMO;" | sed 's_|_ - _g' | sort | uniq
# Oldest to newest (I think). Retain duplicates.