Extract email from "mailto" link

Here we will be posting premade Helium Scraper projects and helpful stuff.
Post Reply
Site Admin
Posts: 521
Joined: Mon Dec 06, 2010 8:39 am

Extract email from "mailto" link

Post by webmaster » Mon Jun 27, 2011 7:43 pm

As of version the "JS_MailTo" is a built-in gatherer so there is no need to download this project unless you want to see how is written.

The attached project contains a JavaScript gatherer called JS_Mailto that gets the email address from a "mailto" link. For those of you who don't know what this is, these are those links that when you click them, you are taken to your default e-mail application (such as Outlook or Windows Live Mail) with an email ready to be sent to a particular address.

Their HTML code would look something like this:

Code: Select all

<a href="mailto:hello@hello.com">Email</a>
To extract an email from these links, you would create a kind that selects them, and then, when extracting, use the JS_Mailto property.

Also, you can see exactly what will be extracted by selecting one of these links and looking at the selection panel at the bottom. The JS_Mailto is already visible on the attached project.
(290.05 KiB) Downloaded 1210 times
Juan Soldi
The Helium Scraper Team

Post Reply