def __init__(self, fp, rand_int): clTldParser.__init__(self, "", False) self.alexa_filepath = fp self.alexa_nbr_touse = int(rand_int) self.tlds_we_have = {} self.tlds_we_need = {} self.whois_servers = {} self.current_zone = {} self.prev_zone = {} self.next_zone = {} self.web_exceptions = [] self.whois_exceptions = [] self.current_com_val = -1 self.current_tld_in_mem = None self.zone_folders_path = "/home/engelsjo/Documents/Research/tld_file_parser/data/zonefiles" self.com_folders_path = "/home/engelsjo/Documents/Research/tld_file_parser/data/comzonefile/splitfiles" self.com_files_path = "/home/engelsjo/Documents/Research/tld_file_parser/data/comzonefile/lengths" self.curr_path = "/home/engelsjo/Documents/Research/tld_file_parser/src"
def __init__(self, candidateTypoFP="../data/comzonefile/splitfiles/", data_path=""): clTldParser.__init__(self, data_path, False) self.candidateTypoFP = candidateTypoFP self.candidatesCount = 0 self.domainCount = 0 self.startTime = datetime.now()