Forked from xavhan/Shazam to youtube and spotify.js
Created
November 7, 2015 09:50
-
-
Save hackvish/a12e273314773d2fa4f0 to your computer and use it in GitHub Desktop.
Shazam Crawler and Youtube Searcher in the console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var data = []; | |
| $(".ti__details").each(function(i){ | |
| var artist = $(this).find(".ti__artist meta").attr("content"); | |
| var title = $(this).find(".ti__title").attr("content"); | |
| var format = artist + " - " + title; | |
| var yt = 'http://www.youtube.com/results?search_type=&search_query=' + encodeURI(artist + " " + title) + '&aq=f&oq='; | |
| var spoti = 'https://play.spotify.com/search/'+ encodeURI(artist + " " + title); | |
| var item = new Object; | |
| console.groupCollapsed(format); | |
| console.log(yt); | |
| console.log(spoti); | |
| console.groupEnd(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment