[FIX] poor .cl has no name in RDAP database. Let's put the link instead of blank

This commit is contained in:
Arnold Dechamps 2024-05-18 03:47:35 +02:00
parent 69dc1ebb84
commit 6a60bbfa77
No known key found for this signature in database
GPG key ID: AE66543374E41C89

View file

@ -155,15 +155,19 @@ def grabber(data, rdaptlds):
try:
organisation = entity["vcardArray"][1][2][3]
except:
organisation = "Reserved (here is the link to the ICANN wiki for more info)"
organisation = ""
try:
link = data["links"][0]["href"]
if "rdap" in link:
link = "https://icannwiki.org/." + tld
if organisation.strip() == "":
organisation = link
except Exception as e:
print("link not found for " + tld)
print(e)
link = "https://icannwiki.org/." + tld
if organisation.strip() == "":
organisation = link
if tld in rdaptlds:
rdap = "Yes"
else: