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:
commit
84e3f5c626
|
@ -155,15 +155,19 @@ def grabber(data, rdaptlds):
|
||||||
try:
|
try:
|
||||||
organisation = entity["vcardArray"][1][2][3]
|
organisation = entity["vcardArray"][1][2][3]
|
||||||
except:
|
except:
|
||||||
organisation = "Reserved (here is the link to the ICANN wiki for more info)"
|
organisation = ""
|
||||||
try:
|
try:
|
||||||
link = data["links"][0]["href"]
|
link = data["links"][0]["href"]
|
||||||
if "rdap" in link:
|
if "rdap" in link:
|
||||||
link = "https://icannwiki.org/." + tld
|
link = "https://icannwiki.org/." + tld
|
||||||
|
if organisation.strip() == "":
|
||||||
|
organisation = link
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("link not found for " + tld)
|
print("link not found for " + tld)
|
||||||
print(e)
|
print(e)
|
||||||
link = "https://icannwiki.org/." + tld
|
link = "https://icannwiki.org/." + tld
|
||||||
|
if organisation.strip() == "":
|
||||||
|
organisation = link
|
||||||
if tld in rdaptlds:
|
if tld in rdaptlds:
|
||||||
rdap = "Yes"
|
rdap = "Yes"
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue