def handle_endtag(self, tag):
    if (tag == self.TABLE):
        self.inside_table = False
    if (not self.inside_table):
        return
    if (self.inside_row and (tag == self.TD)):
        self.inside_row = False
        self.current_item = None
    if (self.current_result and (tag == self.TR)):
        if ('size' in self.current_result):
            self.current_result['size'] = self.current_result['size'].replace(',', '')
        if ('name' in self.current_result):
            prettyPrinter(self.current_result)
        self.results.append('a')
        self.current_result = {}
        self.current_item = None
def handle_endtag(self, tag):
    if (tag == self.TABLE):
        self.inside_table = False
    if (not self.inside_table):
        return
    if (self.inside_row and (tag == self.TD)):
        self.inside_row = False
        self.current_item = None
    if (self.current_result and (tag == self.TR)):
        if ('size' in self.current_result):
            self.current_result['size'] = self.current_result['size'].replace(',', )
        if ('name' in self.current_result):
            prettyPrinter(self.current_result)
        self.results.append('a')
        self.current_result = {}
        self.current_item = None