Skip to content

Instantly share code, notes, and snippets.

@ideag
Last active October 27, 2017 14:58
Show Gist options
  • Save ideag/a9701a720ee568dd65c08793b46df700 to your computer and use it in GitHub Desktop.
Save ideag/a9701a720ee568dd65c08793b46df700 to your computer and use it in GitHub Desktop.
scrape vardai
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