Skip to content

Instantly share code, notes, and snippets.

@xavhan
Last active January 9, 2018 08:58
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save xavhan/87717da0217b9b8299df to your computer and use it in GitHub Desktop.
Save xavhan/87717da0217b9b8299df to your computer and use it in GitHub Desktop.
Shazam Crawler and Youtube Searcher in the console
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();
});
@xavhan
Copy link
Author

xavhan commented Nov 18, 2014

Shazam is wonderful to find tracks but it can be a pain in the ass if you are a crate digger and when you shazam 10 songs a day.

I build this little snippet to ease my everyday digging routine.

You need to go to your MyShazam Page
So it runs directly in the console of you inspector ( Alt++J)
Paste it right in there and press enter

You will get Youtube and Spotify search links.

Enjoy ;)

@seungjulee
Copy link

Thanks for the script!

I have a lot of songs in Shazam, and this script didn't parse songs that are loaded after scrolling down. I forked the script to simulate the scroll to make sure that it loads all songs in my shazam.

https://gist.github.com/seungjulee/9efc3f2b966dca43d526

@xavhan
Copy link
Author

xavhan commented Jan 9, 2018

@seungjulee thanks you, it is a bit late but I never saw you answer, and totally forgot about that script :D

I'll try you version!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment