Skip to content

Instantly share code, notes, and snippets.

@chrispetrou
Created September 4, 2019 23:33
Show Gist options
  • Save chrispetrou/97f188f6d766c8ebace30dc4e18ca1a8 to your computer and use it in GitHub Desktop.
Save chrispetrou/97f188f6d766c8ebace30dc4e18ca1a8 to your computer and use it in GitHub Desktop.
Tiny snippet that collects emails from webpage...
import sys, re, requests
for email in list(set(re.findall(r'([^\s":<>]+@[^\s":<>]+[.][^\s":<>]+)', requests.get(sys.argv[1], verify=False).text))): print(email)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment