Get :class:`TimeResource` objects with creation dates from Whois database.

    Args:
        domain (str): Domain without http://, relative paths and so on.

    Returns:
        list: :class:`TimeResource` objects.

def get_whois_tags(domain):
    """
    Get :class:`TimeResource` objects with creation dates from Whois database.

    Args:
        domain (str): Domain without http://, relative paths and so on.

    Returns:
        list: :class:`TimeResource` objects.
    """
    data = pythonwhois.get_whois(domain)

    return [
        TimeResource(
            url=WHOIS_URL % domain.strip(),
            date=date.isoformat("T"),
            val=date.strftime("%Y"),
            source="Whois",
        )
        for date in data.get("creation_date", [])
    ]