def handle_starttag(self, tag, attrs):
    if ((tag != 'a') or (attrs[0][0] != 'href')):
        return
    self.links_found.append(attrs[0][1])
def handle_starttag(self, tag, attrs):
    if ((tag != 'a') or (attrs[0][0] != 'href')):
        return
    self.links_found.append(attrs[0][1])