I need a script or program built that will allow me to extract email addresses from a website.
When you hover over the email icon, you see the text below.
javascript:__doPostBack('ctl00$ContentPlaceHolderM ainContent$ContactLink$lbspemail','')
Here is the code in view source:
<div id="ctl00_ContentPlaceHolderMainContent_ContactLink_ContactUpdatePanel">
<a id="ctl00_ContentPlaceHolderMainContent_ContactLink_lbspemail" title="Contact Bone Dry Roofing-Lexington" class="linkbutton" href="javascript:__doPostBack('ctl00$ContentPlaceHolderMainContent$ContactLink$lbspemail','')" style="vertical-align:middle;"><img src="../../images/common/button/[login to view URL]" alt="" style="border-width:0px;" /></a>
<input type="hidden" name="ctl00$ContentPlaceHolderMainContent$ContactLink$hb" id="ctl00_ContentPlaceHolderMainContent_ContactLink_hb" />
</div>
When you click on the link, it opens Outlook and puts the email address into the To field.
How can these be extracted per page or in batches?
Below is code from the website that may help.
<script type="text/javascript" src="/AngiesList/inc/[login to view URL]"></script>
<div class="mboxDefault"></div>
<form method="post" action="[login to view URL]" onsubmit="javascript:return WebForm_OnSubmit();" id="aspnetForm">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
<input type="hidden" name="__VIEWSTATE_KEY" id="__VIEWSTATE_KEY" value="661fe0b8-9a01-4cc3-bad2-e7f015f333c1" />
</div>
<script type="text/javascript">
//<![CDATA[
var theForm = [login to view URL]['aspnetForm'];
if (!theForm) {
theForm = [login to view URL];
}
function __doPostBack(eventTarget, eventArgument) {
if (![login to view URL] || ([login to view URL]() != false)) {
[login to view URL] = eventTarget;
[login to view URL] = eventArgument;
[login to view URL]();
}
}
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$AjaxScriptManager', [login to view URL]('aspnetForm'));
[login to view URL]()._updateControls(['tctl00$QwikSearchMaxi$qwikup','fctl00$ContentPlaceHolderMainContent$AddMyServiceCompanies$favoriteUpdatePanel','tctl00$ContentPlaceHolderMainContent$TextControl$favoriteUpdatePanel','tctl00$ContentPlaceHolderMainContent$SPSeeAnError$SuggestUpdatePanel','tctl00$ContentPlaceHolderMainContent$mu$up','tctl00$ContentPlaceHolderMainContent$ContactLink$ContactUpdatePanel'], ['ctl00$ContentPlaceHolderMainContent$AddMyServiceCompanies$submit','ctl00$ContentPlaceHolderMainContent$TextControl$ALHtmlButtonSubmit'], [], 180);
//]]>
</script>