Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

161
Views
How to scrape email id from anchor tag without opening email application

I'm trying to develop windows based web scraper using HAP, CefSharp, and C#. I dont have deep knowledge of handling DOM and HTML.

By any means, is it possible to scrape email id (or just copy the email id to clipboard) in the following link without opening email client or new tab.

<a class="classAuthorEmail" href="mailto:" aria-label="Mail Option">email</a>

Thanks in advance...

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

To work with the DOM you will need the querySelectorAll.

var els = document.querySelectorAll("[href^='mailto'");

for example, for the link,

<p><a href="mailto:someone@example.com">Send email</a></p>

You will get : mailto:someone@example.com

To keep with JavaScript you can use the following:

var mails = [];
for (var i = 0, l = els.length; i < l; i++) {
  var el = els[i];
  mails.push(el.href.replace(/mailto:/gi, ''));
}
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!