def __init__(self, url, with_subdomain=False): HTMLParser.__init__(self) self.protocol, self.domain, self.path = self.parse_url(url) self.with_subdomain = with_subdomain self.links = set()