Skip to content

Instantly share code, notes, and snippets.

@SathyaBhat
Created May 10, 2014 10:48
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 SathyaBhat/a613e2cfaa802626d4ec to your computer and use it in GitHub Desktop.
Save SathyaBhat/a613e2cfaa802626d4ec to your computer and use it in GitHub Desktop.
Fetches spotify data-ids from Spotify's http page. The list is then sent to spotify-to-mp3 ruby gem to download via Grooveshark. And that is how you download songs from spotify.
items = document.getElementsByClassName('play-track');
for(i= 0; i<items.length;i++) {console.log('http://open.spotify.com/track/' + items[i].getAttribute('data-id'));}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment