Skip to content

nag422/extract-emails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extract Emails

Extract emails from a given website

Requirements

  • Python3
  • requests
  • lxml
  • fake-useragent

Installation

pip install extract_emails

Usage

from extract_emails import ExtractEmails

em = ExtractEmails(url, depth=None, print_log=False, ssl_verify=True, user_agent='random')
emails = em.emails
  • url: str, ex: http://example.com
  • depth: int, depth of scan
  • print_log: boolean, print log or not
  • ssl_verify: boolean
  • user_agent: str

ssl_verify - use to avoid errors like this: exceeded with url: /api/v1/pods?watch=False (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)'),))

user_agent - you can choose from several user agents: ie, msie, opera, chrome, google, firefox, safari, or random

Return list of emails.

Changelog

Version 2.0.1

  • Improved readme and setup files

Version 2.0.0

  • Replaced BeautifulSoup to lxml
  • Improved regex for emails
  • Added different user agents

About

Extract emails from a given website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%