Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import re
- for i in range(100):
- word = str(i)
- a = os.popen('whois -v %s.cl' % word).read()
- name = re.findall(r'(Registrant.name:.*)',a)
- creation_time = re.findall(r'(Creation.date:.*)',a)
- expiration_time = re.findall(r'(Expiration.date:.*)',a)
- if creation_time:
- print(name[0])
- print(creation_time[0])
- print(expiration_time[0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement