Skip to content

Instantly share code, notes, and snippets.

@coderbyheart
Last active December 15, 2015 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coderbyheart/5247110 to your computer and use it in GitHub Desktop.
Save coderbyheart/5247110 to your computer and use it in GitHub Desktop.
Extract email addresses from freelancer rhein main
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" <mail@fbrandel.de>,
"Simon Brüchner" <powtac@gmx.de>,
"Benedikt Deicke" <benedikt@benediktdeicke.com>,
"Jan Deppisch" <mail@netzartist.de>,
"Niels Döring" <niels.doering@outlook.com>,
"Walter Ebert" <mail@walterebert.de>,
"Sebastian Fastner" <mail@sebastianfastner.de>,
"Rocco Georgi" <rocco@pavingways.com>,
"Matthias Gutjahr" <mail@matthias-gutjahr.de>,
"Martin Juhasz" <info@martinjuhasz.de>,
"Timo Perl" <t.perl@2ptags.de>,
"Tom Raithel" <hello@tomraithel.de>,
"Jochen Stärk" <jstaerk@usegroup.de>,
"Markus Tacker" <m@tckr.cc>,
"Jan Unger" <ju@juit.de>,
"Sebastian Werner" <info@sebastian-werner.net>,
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment