Socket
Socket
Sign inDemoInstall

html-email-scraper

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
67
increased by109.38%
Maintainers
1
Install size
39.3 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 10 Aug 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc