for name, value in attributes:
    if name == 'id' and value == 'remository':
        break
else:
    return
self.recording = 1

def handle_endtag(self, tag):
    if tag == 'div' and self.recording:
        self.recording -= 1

def handle_data(self, data):
    if self.recording:
        self.data.append(data)
How can I use the python HTMLParser library to extract data from a specific div tag?