1.0.12 • Published 4 years ago

html-email-scraper v1.0.12

Weekly downloads
21
License
ISC
Repository
github
Last release
4 years ago

Scrape (obfuscated) emails using Javascript

This library makes it possible to parse all emails out of html, even the obfuscated ones. To get started:

const { scrapeEmails } = require('html-email-scraper')

After that call the scrapeEmails function with your html (-string) to fetch all emails.

const html = `<div>test (at) gmail.com</div>`
const emails = scrapeEmails(html)
>>> ['test@gmail.com']

For async functionality:

const { scrapeEmailsPromise } = require('html-email-scraper')
const html = `<div>Jeremy.Clarkson (at) gmail(dot)com</div>`
const emails = await scrapeEmailsPromise(html)
>>> ['Jeremy.Clarkson@gmail.com']

Feel free to submit pull requests for improvements.

1.0.9

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.12

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago