Merge pull request #61 from altf4arnold/fix-href
[FIX] API has changed at the other side
This commit is contained in:
commit
c52742a6ae
|
@ -138,7 +138,7 @@ def grabber(data, rdaptlds):
|
||||||
print(tld + " DNSSEC " + e)
|
print(tld + " DNSSEC " + e)
|
||||||
algo = 300
|
algo = 300
|
||||||
# Who registers the thing and get unicode
|
# Who registers the thing and get unicode
|
||||||
rdap = urllib.request.urlopen("https://root.rdap.org/domain/" + tld)
|
rdap = urllib.request.urlopen("https://rdap.iana.org/domain/" + tld)
|
||||||
if rdap.getcode() == 200:
|
if rdap.getcode() == 200:
|
||||||
raw = rdap.read().decode("utf-8")
|
raw = rdap.read().decode("utf-8")
|
||||||
data = json.loads(raw)
|
data = json.loads(raw)
|
||||||
|
@ -157,7 +157,9 @@ def grabber(data, rdaptlds):
|
||||||
except:
|
except:
|
||||||
organisation = "Reserved"
|
organisation = "Reserved"
|
||||||
try:
|
try:
|
||||||
link = data["links"][2]["href"]
|
link = data["links"][0]["href"]
|
||||||
|
if "rdap" in link:
|
||||||
|
link = "https://icannwiki.org/." + tld
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("link not found for " + tld)
|
print("link not found for " + tld)
|
||||||
print(e)
|
print(e)
|
||||||
|
|
Loading…
Reference in a new issue