':param url: The url (as string) from the phishtank database
:return: A PhishTankMatch if url matches what we\'re looking for, None
if there is no match'

def _url_matches(self, phishing_url, phishtank_detail_url):

    query_result = self._to_check_esm.query(phishing_url)
    if query_result:
        phish_url = URL(phishing_url)
        target_host_url = URL(query_result[0])
        if ((target_host_url.get_domain() == phish_url.get_domain()) or phish_url.get_domain().endswith(('.' + target_host_url.get_domain()))):
            phish_detail_url = URL(phishtank_detail_url)
            ptm = PhishTankMatch(phish_url, phish_detail_url)
            return ptm
    return None
