-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathtest.py
More file actions
57 lines (44 loc) · 693 Bytes
/
test.py
File metadata and controls
57 lines (44 loc) · 693 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import whois
from pprint import pprint
domains = '''
google.com.br
www.google.com
www.fsdfsdfsdfsd.google.com
digg.com
imdb.com
microsoft.com
www.google.org
ddarko.org
google.net
www.asp.net
google.pl
www.ddarko.pl
google.co.uk
google.jp
www.google.co.jp
google.co
google.de
yandex.ru
google.us
google.eu
google.me
google.be
google.biz
google.info
google.name
google.it
google.cz
google.fr
dfsdfsfsdf
test.ez.lv
'''
#domains = ''
for d in domains.split('\n'):
if d:
print('-'*80)
print(d)
w = whois.query(d, ignore_returncode=1)
if w:
wd = w.__dict__
for k, v in wd.items():
print('%20s\t"%s"' % (k, v))