Scrape Email Bookmarklet
boz — Wed, 10/27/2010 - 07:43
Here is a simple bookmarklet to collect the email addresses on a web page. Enjoy!
Code
javascript:(function(){
var output = '';
var links = document.getElementsByTagName('a');
for(var i=0; i<links.length; i++){
if(links[i].href.indexOf('mailto') != -1){
output += links[i].href.substring(7);
output += ', ';
}
}
if(output.length == 0){
output = 'No Emails Found';
}
alert(output);
})()
Drag and drop this link to your bookmark bar or right click it and add it as a bookmark or favorite.
Usage:
Go to a web page with email links and click on the bookmark. An alert should appeart with a comma seperated list of all the email addresses on teh page.
