Created
September 14, 2016 06:46
-
-
Save CVertex/59b3fa6205dfb2777b6debc7c8790092 to your computer and use it in GitHub Desktop.
Read all Spotify Markets from Spotify Charts
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
| // Visit https://spotifycharts.com/regional and run the following in console | |
| var ts = ''; | |
| $('div[data-type=country] ul li').each(function(i,val) { | |
| ts += 'new Market("' + $(val).text() + '","' + $(val).attr("data-value").toUpperCase() + '"),' + " "; | |
| }); | |
| console.log(ts); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment