mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-25 23:35:41 +03:00
Get RUS data / fix
This commit is contained in:
2571
auto/all-ru-asn.txt
Normal file
2571
auto/all-ru-asn.txt
Normal file
File diff suppressed because it is too large
Load Diff
@@ -35,7 +35,10 @@ def get_data(json, file, attr, field, prefix=""):
|
||||
for x in json['data']['resources'][attr]:
|
||||
x = prefix+x.strip()
|
||||
response = whois_query(whois_server, x, field)
|
||||
name = response.split(':')[1].strip()
|
||||
if response is None:
|
||||
name = "None"
|
||||
else:
|
||||
name = response.split(':')[1].strip()
|
||||
print(f"{x} {name}")
|
||||
f.write(str(x+" "+name) + '\n')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user