Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

155
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda