-
Notifications
You must be signed in to change notification settings - Fork 1
/
data_if_loop.py
210 lines (207 loc) · 5.73 KB
/
data_if_loop.py
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
import data
def domain_lookup(domain):
if domain.endswith("com"):
tld = data.com
elif domain.endswith("ist"):
tld = data.com
elif domain.endswith("istanbul"):
tld = data.com
elif domain.endswith("ac.uk"):
tld = data.ac_uk
elif domain.endswith("am"):
tld = data.am
elif domain.endswith("amsterdam"):
tld = data.amsterdam
elif domain.endswith("ar"):
tld = data.ar
elif domain.endswith("at"):
tld = data.at
elif domain.endswith("au"):
tld = data.au
elif domain.endswith("aw"):
tld = data.aw
elif domain.endswith("bank"):
tld = data.bank
elif domain.endswith("be"):
tld = data.be
elif domain.endswith("biz"):
tld = data.biz
elif domain.endswith("br"):
tld = data.br
elif domain.endswith("by"):
tld = data.by
elif domain.endswith("ca"):
tld = data.ca
elif domain.endswith("cc"):
tld = data.cc
elif domain.endswith("cl"):
tld = data.cl
elif domain.endswith("club"):
tld = data.club
elif domain.endswith("cn"):
tld = data.cn
elif domain.endswith("co"):
tld = data.co
elif domain.endswith("com.au"):
tld = data.com_au
elif domain.endswith("com.tr"):
tld = data.com_tr
elif domain.endswith("tr"):
tld = data.com_tr
elif domain.endswith("co.il"):
tld = data.co_il
elif domain.endswith("courses"):
tld = data.courses
elif domain.endswith("cr"):
tld = data.cr
elif domain.endswith("cz"):
tld = data.cz
elif domain.endswith("de"):
tld = data.de
elif domain.endswith("download"):
tld = data.download
elif domain.endswith("edu"):
tld = data.edu
elif domain.endswith("education"):
tld = data.education
elif domain.endswith("eu"):
tld = data.eu
elif domain.endswith("fi"):
tld = data.fi
elif domain.endswith("fm"):
tld = data.fm
elif domain.endswith("fr"):
tld = data.fr
elif domain.endswith("flr"):
tld = data.frl
elif domain.endswith("game"):
tld = data.game
elif domain.endswith("global"):
tld = data.global_
elif domain.endswith("hk"):
tld = data.hk
elif domain.endswith("id"):
tld = data.id_
elif domain.endswith("ie"):
tld = data.ie
elif domain.endswith("im"):
tld = data.im
elif domain.endswith("in"):
tld = data.in_
elif domain.endswith("info"):
tld = data.info
elif domain.endswith("ink"):
tld = data.ink
elif domain.endswith("io"):
tld = data.io
elif domain.endswith("ir"):
tld = data.ir
elif domain.endswith("is"):
tld = data.is_
elif domain.endswith("it"):
tld = data.it
elif domain.endswith("kr"):
tld = data.kr
elif domain.endswith("kz"):
tld = data.kz
elif domain.endswith("link"):
tld = data.link
elif domain.endswith("lt"):
tld = data.lt
elif domain.endswith("lv"):
tld = data.lv
elif domain.endswith("ml"):
tld = data.me
elif domain.endswith("mobi"):
tld = data.mobi
elif domain.endswith("mx"):
tld = data.mx
elif domain.endswith("name"):
tld = data.name
elif domain.endswith("net"):
tld = data.net
elif domain.endswith("ninja"):
tld = data.ninja
elif domain.endswith("nl"):
tld = data.nl
elif domain.endswith("nu"):
tld = data.nu
elif domain.endswith("nyc"):
tld = data.nyc
elif domain.endswith("nz"):
tld = data.nz
elif domain.endswith("online"):
tld = data.online
elif domain.endswith("org"):
tld = data.org
elif domain.endswith("pe"):
tld = data.pe
elif domain.endswith("pharmacy"):
tld = data.pharmacy
elif domain.endswith("pl"):
tld = data.pl
elif domain.endswith("press"):
tld = data.press
elif domain.endswith("pro"):
tld = data.pro
elif domain.endswith("pt"):
tld = data.pt
elif domain.endswith("pub"):
tld = data.pub
elif domain.endswith("pw"):
tld = data.pw
elif domain.endswith("rest"):
tld = data.rest
elif domain.endswith("ru"):
tld = data.ru
elif domain.endswith("ru.rf"):
tld = data.ru_rf
elif domain.endswith("sale"):
tld = data.sale
elif domain.endswith("security"):
tld = data.security
elif domain.endswith("sh"):
tld = data.sh
elif domain.endswith("site"):
tld = data.site
elif domain.endswith("se"):
tld = data.se
elif domain.endswith("space"):
tld = data.space
elif domain.endswith("store"):
tld = data.store
elif domain.endswith("study"):
tld = data.study
elif domain.endswith("tech"):
tld = data.tech
elif domain.endswith("tel"):
tld = data.tel
elif domain.endswith("theatre"):
tld = data.theatre
elif domain.endswith("tickets"):
tld = data.tickets
elif domain.endswith("trade"):
tld = data.trade
elif domain.endswith("tv"):
tld = data.tv
elif domain.endswith("ua"):
tld = data.ua
elif domain.endswith("uk"):
tld = data.uk
elif domain.endswith("us"):
tld = data.us
elif domain.endswith("uz"):
tld = data.uz
elif domain.endswith("video"):
tld = data.video
elif domain.endswith("website"):
tld = data.website
elif domain.endswith("wiki"):
tld = data.wiki
elif domain.endswith("work"):
tld = data.work
elif domain.endswith("xyz"):
tld = data.xyz
elif domain.endswith("za"):
tld = data.za
return tld