-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (23 loc) · 659 Bytes
/
main.py
File metadata and controls
32 lines (23 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import whois as pywho
import time as t
search = input("Which domain lookup?: ")
# domain name
t.sleep(0.35)
print(" Domain name:", search)
print(''' -------------------''')
# creation date
print(" Company:", pywho.whois(search).org)
t.sleep(0.35)
print(''' -------------------''')
# creation date
try:
for x in pywho.whois(search).creation_date:
t.sleep(0.15)
print(" Creation date:", x)
except TypeError:
print(" Creation date:", pywho.whois(search).creation_date)
print(''' -------------------''')
t.sleep(0.35)
for content in pywho.whois(search).emails:
t.sleep(0.15)
print(" Emails:", content)