in libmozdata/wiki_parser.py [0:0]
def handle_starttag(self, tag, attrs):
if tag == "table":
self.table_counter += 1
if self.table_counter in self.tables_number:
self.table = Table()
if self.table is not None:
if tag == "tr":
self.table.add_row()
elif tag == "td":
attrs = dict(attrs)
self.table.add_cell(attrs.get("rowspan", 1))
self.td = ""
elif tag == "th":
attrs = dict(attrs)
self.table.add_cell(attrs.get("rowspan", 1))
self.th = ""