raise ValueError(f"domain='{domain}' is not a valid domain")
elif domain.endswith(".arpa"):
raise ValueError(f"domain='{domain}' is a domain for reversed IP addresses, please don't crawl them!")
+ elif domain.endswith(".onion"):
+ raise ValueError(f"domain='{domain}' is a TOR, please don't crawl them!")
elif domain.endswith(".tld"):
raise ValueError(f"domain='{domain}' is a fake domain, please don't crawl them!")
raise ValueError(f"Parameter domain='{domain}' must be all lower-case")
elif domain.endswith(".arpa"):
raise ValueError(f"domain='{domain}' is a domain for reversed IP addresses, please don't crawl them!")
+ elif domain.endswith(".onion"):
+ raise ValueError(f"domain='{domain}' is a TOR domain, please don't crawl them!")
elif domain.endswith(".tld"):
raise ValueError(f"domain='{domain}' is a fake domain, please don't crawl them!")
elif not isinstance(char, str):
elif domain.endswith(".arpa"):
logger.debug("domain='%s' is a domain for reversed IP addresses - settings False ...", domain)
wanted = False
+ elif domain.endswith(".onion"):
+ logger.debug("domain='%s' is a TOR .onion domain - settings False ...", domain)
+ wanted = False
elif domain.endswith(".tld"):
logger.debug("domain='%s' is a fake domain - settings False ...", domain)
wanted = False