mirror of
https://github.com/lalanza808/monero.fail.git
synced 2025-08-21 15:08:05 -04:00
setting up whois info
This commit is contained in:
parent
fae6ab3688
commit
2a6d0a8e9c
2 changed files with 10 additions and 2 deletions
|
@ -30,3 +30,4 @@ Werkzeug==2.2.3
|
||||||
WTForms==3.0.1
|
WTForms==3.0.1
|
||||||
yarl==1.8.2
|
yarl==1.8.2
|
||||||
zipp==3.15.0
|
zipp==3.15.0
|
||||||
|
dnspython==1.15.0
|
||||||
|
|
|
@ -6,7 +6,6 @@ from os import path
|
||||||
import geoip2.database
|
import geoip2.database
|
||||||
from requests import get as r_get
|
from requests import get as r_get
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
from levin.section import Section
|
|
||||||
from levin.bucket import Bucket
|
from levin.bucket import Bucket
|
||||||
from levin.ctypes import *
|
from levin.ctypes import *
|
||||||
from levin.constants import LEVIN_SIGNATURE
|
from levin.constants import LEVIN_SIGNATURE
|
||||||
|
@ -167,3 +166,11 @@ def get_geoip(ip_or_dns):
|
||||||
host = host if resolved == host else resolved
|
host = host if resolved == host else resolved
|
||||||
with geoip2.database.Reader("./data/GeoLite2-City.mmdb") as reader:
|
with geoip2.database.Reader("./data/GeoLite2-City.mmdb") as reader:
|
||||||
return reader.city(host)
|
return reader.city(host)
|
||||||
|
|
||||||
|
def get_whois(ip_or_dns):
|
||||||
|
pass
|
||||||
|
|
||||||
|
# asn
|
||||||
|
# asn_cidr
|
||||||
|
# asn_country_code
|
||||||
|
# asn_description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue