Scrape Email Bookmarklet

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);
})()

Scrape Email Bookmarklet

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.

comments powered by Disqus

© Balanced Scale Media, LLC. All right reserved.