mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-24 23:26:38 +03:00
whois
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from pylib.whois import whois_query
|
|
||||||
|
|
||||||
url = "https://stat.ripe.net/data/country-resource-list/data.json?resource=RU&v4_format=prefix"
|
url = "https://stat.ripe.net/data/country-resource-list/data.json?resource=RU&v4_format=prefix"
|
||||||
|
|
||||||
def get_data(json, file, attr, field, prefix=""):
|
def get_data(json, file, attr, field, prefix=""):
|
||||||
with open(file, 'w') as f:
|
with open(file, 'w') as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user