email-scraper

Simple utility to extract email addresses from HTML, including obfuscated email addresses


Keywords
email, scraping, web, obfuscate, python
License
MIT
Install
pip install email-scraper==0.5

Documentation

Python Module for Scraping Email Addresses from HTML

The email_scraper module provides a simple method that extracts email addresses from HTML. It is able to find emails in plain text, links, atob() obfuscation and HTML entities obfuscation.

Available on PyPI.

Usage

>>> from email_scraper import scrape_emails
>>> scrape_emails('<html><body><a href="mailto:hello@world.com">email me</a></body></html>')
{'hello@world.com'}
>>> scarpe_emails('<a href="javascript:window.location.href=atob(\'bWFpbHRvOmVtYWlsQGV4YW1wbGUuY29t\')">E-Mail</a>')
{'email@example.com'}