diff --git a/legistar/base.py b/legistar/base.py index 77ae289..c9fa4a4 100644 --- a/legistar/base.py +++ b/legistar/base.py @@ -173,6 +173,8 @@ def parseDataTable(self, table): keys.append(text_content) elif len(inputs) > 0: keys.append(header.xpath('.//input')[0].value) + elif header.xpath(".//a"): + keys.append(header.xpath('.//a/text()')[0].replace(' ', ' ').strip()) else: keys.append(header.xpath('.//img')[0].get('alt'))