def get_domain_home_from_url(self, url):
        """ parse url for domain and homepage

        :param url: the req url
        :type url: str
        :return: (homepage, domain)
        :rtype:
        """
        p = parse.urlparse(url)
        if p.netloc:
            self.domain = p.netloc
            self.homepage = '{}://{}'.format(p.scheme, p.netloc)
            return self.homepage, p.netloc
        else:
            return '', ''
parse url for domain and homepage

        :param url: the req url
        :type url: str
        :return: (homepage, domain)
        :rtype: