'Gets all tags defined in \'dl\' tags'

def get_tags(self):

    self.tags = []
    for tag in self.soup.find_all('dl'):
        name = tag.dt.contents[0]
        info = ''
        for p in tag.dd.find_all('p'):
            info += (p.getText() + '    ')
        a_tags = tag.dd.find_all('a')
        example_id = a_tags[1]['href'].replace('#', '')
        example = self.soup.find('div', {'id': example_id}).getText()
        reference = ''
        try:
            reference = tag.dt.span.a['href']
        except:
            reference = a_tags[0]['href']
        reference = ('http://html5doctor.com/element-index/#' + name)
        new_tag = Tag(name, info, reference, example)
        self.tags.append(new_tag)
        logger.info(('Tag    parsed:    %s' % new_tag.name))
