linkify/priv/lowercase.py
Sam Therapy 7a207ac59d
add openNIC
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-01-20 17:01:35 +01:00

10 lines
308 B
Python
Executable file

#!/usr/bin/env python3
from urllib.request import urlopen
tlds = urlopen('https://data.iana.org/TLD/tlds-alpha-by-domain.txt').read().decode('utf8')
tlds += "\n" + urlopen('https://cdn.froth.zone/opennic-alpha-by-domain.txt').read().decode('utf8')
for line in tlds.splitlines():
print(line.lower())