Skip to content

Instantly share code, notes, and snippets.

@MikeRich88
Last active April 19, 2026 22:06
Show Gist options
  • Select an option

  • Save MikeRich88/dca4bc71f1e9a06de4cae81a415695d1 to your computer and use it in GitHub Desktop.

Select an option

Save MikeRich88/dca4bc71f1e9a06de4cae81a415695d1 to your computer and use it in GitHub Desktop.
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.
sqlite3 ~/Library/Application\ Support/com.apple.shazamd/ShazamLibrary.sqlite "select ZSUBTITLE, ZTITLE from ZSHTRACKMO;" | sed 's_|_ - _g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment