Advertisement
SoUiLaHxXx_Dz

Mail'z ExtractOr

Feb 22nd, 2014
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. #!/usr/bin/python
  2. import re
  3.  
  4. ##############################
  5. #   Author : SoUiLaHxXx_Dz   #
  6. ##############################
  7.  
  8. mails = raw_input("MailList : ")
  9. type = raw_input("Mail [hotmail Or gmail...etc] : ")
  10. result = raw_input("New MailList : ")
  11. mails = open(mails, "r")
  12. nn = open(result, "a")
  13. for x in mails:
  14.   x = x.strip()
  15.   if re.search(type, x):
  16.     print x
  17.     nn.write(x+"\n")
  18.   else:
  19.     pass
  20.  
  21. mails.close()
  22. nn.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement