def handle_starttag(self, tag, attrs):
    self.inside_table = (self.inside_table or (tag == self.TABLE))
    if (not self.inside_table):
        return
    attrs = dict(attrs)
    link = attrs.get('href', '')
    if ((tag == self.A) and link.startswith('/torrent')):
        self.current_result['link'] = (self.url + link)
        self.current_result['desc_link'] = (self.url + link)
        self.current_result['engine_url'] = self.url
        self.current_item = 'name'
    if (tag == self.SPAN):
        self.current_item = None
    if (tag == self.TD):
        self.inside_row = True
        for item in ['seeds', 'leech', 'size']:
            if (item in attrs.get('class', '')):
                self.current_item = item
                break
def handle_starttag(self, tag, attrs):
    self.inside_table = (self.inside_table or (tag == self.TABLE))
    if (not self.inside_table):
        return
    attrs = dict(attrs)
    link = attrs.get('href', )
    if ((tag == self.A) and link.startswith('/torrent')):
        self.current_result['link'] = (self.url + link)
        self.current_result['desc_link'] = (self.url + link)
        self.current_result['engine_url'] = self.url
        self.current_item = 'name'
    if (tag == self.SPAN):
        self.current_item = None
    if (tag == self.TD):
        self.inside_row = True
        for item in ['seeds', 'leech', 'size']:
            if (item in attrs.get('class', )):
                self.current_item = item
                break