Guest User

Untitled

a guest
Nov 20th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import re
  2. f = open("lista.txt")
  3. f2 = open("listay.txt", "w")
  4. uniquelines = set(f.read().split("\n"))
  5.  
  6. for line in uniquelines:
  7. x = line.split(":")
  8. if re.search('^[a-zA-Z0-9_]{2,16}$', x[0]) and len(x) == 2 and x[1]:
  9. f2.write("--" + "\n" "Username: " + x[0] + "\n" + "Password: " + x[1] + "\n")
  10. f2.write("--")
  11. f2.close()
Add Comment
Please, Sign In to add comment