logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
-# Cookies stor
+# Cookies storage
_cookies = {}
def store (domain: str, cookies: dict):
def is_wanted(domain: str) -> bool:
logger.debug("domain='%s' - CALLED!", domain)
-
- wanted = True
if not isinstance(domain, str):
raise ValueError(f"Parameter domain[]='{type(domain)}' is not of type 'str'")
elif domain == "":
raise ValueError("Parameter 'domain' is empty")
- elif domain.lower() != domain:
+
+ wanted = True
+ if domain.lower() != domain:
wanted = False
elif not validators.domain(domain.split("/")[0]):
logger.debug("domain='%s' is not a valid domain name - setting False ...", domain)