@classmethod
def extractAdressAndTitle(cls, link):
    address = link.url
    titles = [(key, value) for (key, value) in link.attrs if (key.lower() == 'title')]
    if (len(titles) == 0):
        return (None, None)
    (_, title) = titles.pop()
    return (address, title)
@classmethod
def extractAdressAndTitle(cls, link):
    address = link.url
    titles = [(key, value) for (key, value) in link.attrs if (key.lower() == 'title')]
    if (len(titles) == 0):
        return (None, None)
    (_, title) = titles.pop()
    return (address, title)