Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import os
  2. import re
  3.  
  4.  
  5. for i in range(100):
  6. word = str(i)
  7. a = os.popen('whois -v %s.cl' % word).read()
  8. name = re.findall(r'(Registrant.name:.*)',a)
  9. creation_time = re.findall(r'(Creation.date:.*)',a)
  10. expiration_time = re.findall(r'(Expiration.date:.*)',a)
  11. if creation_time:
  12. print(name[0])
  13. print(creation_time[0])
  14. print(expiration_time[0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement