Skip to content

Instantly share code, notes, and snippets.

@mikk150
Created May 27, 2016 14:43
Show Gist options
  • Save mikk150/d00a394ff323e93eee5cf44138e05b71 to your computer and use it in GitHub Desktop.
Save mikk150/d00a394ff323e93eee5cf44138e05b71 to your computer and use it in GitHub Desktop.
www.behindthename.com names extractor
// http://www.behindthename.com/names/gender/masculine/usage/georgian
$('.browsename').find('a:not([class]):not([href=""])').get().map(function(e) {
return $(e).attr('href');
}).map(function (url) {
$.ajax({
url:url,
dataType:'html',
success: function (data) {
$element = $(data).find('a.trn');
$elements = $element.get().filter(function(e) {
return e.href.indexOf('type=GE')>0
}).map(function (e) {
return $(e).text()
})
console.log($elements);
}
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment