Grab a list of emails from a website with paging

development, ideas Add comments

A one-liner to grab a list of emails.

wget -q -O - http://server.com/?page={1..42} | grep -ioE '\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b' | sort -ui > emails.txt

Just replace the page URL and define the start-finish numbers of paging: the {1..42} part means paging from page #1 to page #42 — of course, this is what you should investigate to form a proper final URL.

The sorted results are in emails.txt file.

Yes, there is no phone numbers or first\last names parsed. Fast and easy solution.

Comments are closed.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in