• RESUME
  • LOGIN

balanced scale media

  • blog
  • projects
  • services
  • contact
Home › Blogs › boz's blog

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

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.

  • JavaScript
  • boz's blog
  • Add new comment

Recent Posts

  • Backbone.js Resources
  • Generate Word Documents With PHP
  • Delete CCK Inactive Fields
  • Delete Nodes From A Certain Date in Drupal
  • Automated Node Titles Without Auto Node Title
  • Drupal Camp Iowa Ajax Example
  • Get Paid To Learn Drupal!
  • Presenting "JavaScript Guidelines : When and When Not to Script"
  • Drupal Form Alter on a Node Reference Widget
  • The Paradox Of Drupal
more

Topics

  • Android
  • Apace
  • Aptana
  • Backbone.js
  • Bazaar
  • Browser
  • Code
  • Drupal
  • Eclipse
  • Flex

Archive

  • February 2008 (1)
  • May 2008 (1)
  • July 2008 (3)
  • December 2008 (2)
  • January 2009 (2)
  • March 2009 (3)
  • April 2009 (5)
  • May 2009 (1)
  • July 2009 (1)
  • August 2009 (3)
more

Links

 

  • blog
  • projects
  • services
  • contact

© 2012 Balanced Scale Media, LLC. All Rights Reserved.