Merge pull request #63 from altf4arnold/cl

[FIX] poor .cl has no name in RDAP database. Let's put the link inste…
This commit is contained in:
Arnold Dechamps 2024-05-18 03:49:39 +02:00 committed by GitHub
commit 84e3f5c626
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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: