Skip to content

Instantly share code, notes, and snippets.

@shanesveller
Created June 17, 2014 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanesveller/3245f275d47d416d7d64 to your computer and use it in GitHub Desktop.
Save shanesveller/3245f275d47d416d7d64 to your computer and use it in GitHub Desktop.
Last.fm - Similar artists via httpie / jq
$ LFM_ROOT=http://ws.audioscrobbler.com/2.0/
$ ARTIST="Rise Against"
$ AGENT=ShaneSveller
$ API_KEY=CHANGEME
$ http GET $LFM_ROOT method==artist.getsimilar artist=="$ARTIST" api_key==$API_KEY format==json User-Agent:$AGENT | jq '.similarartists.artist[].name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment