@staticmethod
def _get_domain_from_url(url):
    """
        Returns the domain name for a given URL.

        :args:
            url (str): the given URL

        :return:
            (str): the domain name
        """
    domain = url.split('/')[2].split('?')[0].strip()
    try:
        return domain.strip()
    except IndexError:
        pass
