linting and comment
This commit is contained in:
parent
4889a93c64
commit
0321c20ab5
|
@ -184,8 +184,8 @@ def grabber(data, rdaptlds):
|
||||||
|
|
||||||
def rdaper():
|
def rdaper():
|
||||||
"""
|
"""
|
||||||
Downloads the root zone (as to not put constraint on the DNSses and resolve locally). Returns the zonefile in lines.
|
Downloads the RDAP link database from IANA and creates a list of all the tlds that currently support it.
|
||||||
returns None if not working.
|
returns either a full or an empty list.
|
||||||
"""
|
"""
|
||||||
rdaptlds = []
|
rdaptlds = []
|
||||||
url = urllib.request.urlopen("https://data.iana.org/rdap/dns.json")
|
url = urllib.request.urlopen("https://data.iana.org/rdap/dns.json")
|
||||||
|
@ -200,6 +200,7 @@ def rdaper():
|
||||||
rdaptlds.append(j)
|
rdaptlds.append(j)
|
||||||
return rdaptlds
|
return rdaptlds
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
try:
|
try:
|
||||||
zonefile = zonedownloader().splitlines(True)
|
zonefile = zonedownloader().splitlines(True)
|
||||||
|
|
Loading…
Reference in a new issue