· 8 years ago · Jan 11, 2018, 09:48 AM
1import time
2from validate_email import validate_email
3count=0
4# Get space to search
5s = [str(i).zfill(5) for i in xrange(99999)]
6start=time.time()
7print "Searching " + str(len(s)) + " combinations..."
8with open("matches.txt","w") as cam:
9 for i in s:
10 # Build the email here, to use for both scanning and display.
11 e = "danielstiel" + i + "@gmail.com"
12 if validate_email(e,verify=True):
13 print "Match: " + e
14 count+=1
15 cam.write(e+"\r\n")
16 else:
17 print "Fail: " + e
18end=time.time()
19print "Found " + str(count) + " matches in " + str(end-start) + " seconds. Wrote matches to matches.txt."