Skip to content

Instantly share code, notes, and snippets.

@paulcpederson
Last active April 15, 2019 01:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulcpederson/62b85ff4b6acb1488d2d to your computer and use it in GitHub Desktop.
Save paulcpederson/62b85ff4b6acb1488d2d to your computer and use it in GitHub Desktop.
Get the top tags of an artist formatted for itunes from their last.fm page
Array.prototype.slice.call(document.querySelectorAll('.tags-list--global .tag a')).map(function (tag) {
return 'genre:' + tag.innerText.replace(/ /g, '-');
}).join(', ')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment