Last active
October 27, 2017 14:58
-
-
Save ideag/a9701a720ee568dd65c08793b46df700 to your computer and use it in GitHub Desktop.
scrape vardai
This file contains 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
jQuery.ajaxSetup({async:false}); | |
jQuery.each(jQuery('.namesList ul>li a'),function(no,link){ | |
var name = jQuery(link).text().normalize('NFD').replace(/[\u0300-\u0303]/g, "").normalize('NFC'); | |
jQuery.get( | |
'https://api.aru.lt/json/names/v1/'+name, {'v':2} | |
); | |
console.log(name); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment