INNER CODE UNIT · Python
Domain
atenreiro/opensquat · opensquat/app.py:91
class Domain:
"""
Main orchestration class for OpenSquat.
"""
def __init__(self):
"""Initiator."""
self.domain_filename = None
self.keywords_filename = None
self.domain_total = 0
self.keywords_total = 0
self.list_domains = []
self.keyword_domains = {}
# Parallel to keyword_domains, but carries the full per-domain
# metadata (LookalikeDomain objects) instead of bare strings.
# Populated only in Premium API mode where the server returns
# tld/date/idn/unicode. JSON and CSV output readers check this
# and fall back to keyword_domains when it's empty.