Skip to main content

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

Project description

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.

https://github.com/kichik/email-scraper/workflows/Build/badge.svg https://badge.fury.io/py/email-scraper.svg

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'}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

email-scraper-0.5.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

email_scraper-0.5-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file email-scraper-0.5.tar.gz.

File metadata

  • Download URL: email-scraper-0.5.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for email-scraper-0.5.tar.gz
Algorithm Hash digest
SHA256 7633268c22a98f3419d19626fa3f086b14bd990f8ba3449ad8cd8ebd1853617a
MD5 602909738a6195ae14bd2b5fc83f5e18
BLAKE2b-256 71f378e745c325dcb4a46042ed91a9305b560dbb0c63ca171823d99e25306c99

See more details on using hashes here.

File details

Details for the file email_scraper-0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for email_scraper-0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a479f210e460795ef5405f31abfc42a1282297ff3816a021ce63b72f432949ce
MD5 18c43e27cb19493424597451b124c6e0
BLAKE2b-256 78d6efbffc6c90423f1e36cd5d73a4bb2f3575b049a8cb98cc7ae2d26422c111

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page