I have an HTML table similar to following where table headers are also within a row. How can I extract it in a single pass using a third party python package? (should be either a list or a dict)
<table>
<tr>
<th>Header 1</th><td>Value 1</td>
</tr>
<tr>
<th>Header 2</th><td>Value 2</td>
</tr>
<tr>
<th>Header 3</th><td>Value 3</td>
</tr>
</table>