Last active
December 15, 2015 10:39
-
-
Save coderbyheart/5247110 to your computer and use it in GitHub Desktop.
Extract email addresses from freelancer rhein main
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
var infotext = ""; | |
$('.person-detail').map(function(i, p) { | |
var name = $(p).find('h2[itemprop=name]').text().trim(); | |
var email = $(p).find('*[itemprop=email]').text().trim(); | |
if (!email) return; // No email? Pah. | |
var info = '"' + name + '" <' + email + '>'; | |
return info; | |
}).each(function(i,info) { infotext = infotext + info + ",\n"; }); | |
alert("E-Mails:\n\n" + infotext); | |
console.log(infotext); | |
/* | |
Ausgeführt für http://freelancer-rheinmain.de/search?q=JavaScript gibt das: | |
"Florian Brandel" <[email protected]>, | |
"Simon Brüchner" <[email protected]>, | |
"Benedikt Deicke" <[email protected]>, | |
"Jan Deppisch" <[email protected]>, | |
"Niels Döring" <[email protected]>, | |
"Walter Ebert" <[email protected]>, | |
"Sebastian Fastner" <[email protected]>, | |
"Rocco Georgi" <[email protected]>, | |
"Matthias Gutjahr" <[email protected]>, | |
"Martin Juhasz" <[email protected]>, | |
"Timo Perl" <[email protected]>, | |
"Tom Raithel" <[email protected]>, | |
"Jochen Stärk" <[email protected]>, | |
"Markus Tacker" <[email protected]>, | |
"Jan Unger" <[email protected]>, | |
"Sebastian Werner" <[email protected]>, | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment