ch22: examples
This commit is contained in:
parent
a751c86836
commit
5aaa4e4929
@ -8,8 +8,10 @@ from netaddr import multi_probe
|
||||
|
||||
|
||||
async def main(tld: str) -> None:
|
||||
names = (f'{w}.{tld}'.lower() for w in kwlist if len(w) <= 4)
|
||||
async for name, found in multi_probe(sorted(names)):
|
||||
tld = tld.strip('.')
|
||||
names = (w.lower() for w in kwlist if len(w) <= 4)
|
||||
domains = (f'{name}.{tld}' for name in names)
|
||||
async for name, found in multi_probe(domains):
|
||||
mark = '.' if found else '?\t\t'
|
||||
print(f'{mark} {name}')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user