Created
May 27, 2016 14:43
-
-
Save mikk150/d00a394ff323e93eee5cf44138e05b71 to your computer and use it in GitHub Desktop.
www.behindthename.com names extractor
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
// 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