🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

html-email-scraper

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-email-scraper

A scraping package that allows retrieving emails out of obfuscated html

1.0.12
latest
Source
npm
Version published
Weekly downloads
34
142.86%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

scraping

FAQs

Package last updated on 10 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts