<body><html>
<table border="1" width="100%" cellspacing="0" cellpadding="1">
<tr bgcolor="#3366FF">
<td align="left" width="10%" valign="top"><font color="#FFFFFF">
Date
</font></td>
<td align="left" width="10%" valign="top"><font color="#FFFFFF">
Day
</font></td>
<td align="left" width="10%" valign="top"><font color="#FFFFFF">
Time
</font></td>
<td align="left" width="10%" valign="top"><font color="#FFFFFF">
Course
</font></td>
<td align="left" width="40%" valign="top"><font color="#FFFFFF">
Course Title
</font></td>
<td align="left" width="10%" valign="top"><font color="#FFFFFF">
Duration
</font></td>
<tr align="yes" valign="yes" bgcolor="#99CCFF">
<td align="left" width="10%" valign="top">
24 November 2017
</td>
<td align="left" width="10%" valign="top">
Friday
</td>
<td align="left" width="10%" valign="top">
9.00 am
</td>
<td align="left" width="10%" valign="top">
AC1101
</td>
<td align="left" width="40%" valign="top">
ACCOUNTING I
</td>
<td align="left" width="10%" valign="top">
2.5
</td>
</tr>
<tr align="yes" valign="yes" bgcolor="#FFFFFF">
<td align="left" width="10%" valign="top">
24 November 2017
</td>
<td align="left" width="10%" valign="top">
Friday
</td>
<td align="left" width="10%" valign="top">
9.00 am
</td>
<td align="left" width="10%" valign="top">
AD1101
</td>
<td align="left" width="40%" valign="top">
FINANCIAL ACCOUNTING
</td>
<td align="left" width="10%" valign="top">
2.5
</td>
</tr>
<tr align="yes" valign="yes" bgcolor="#99CCFF">
<td align="left" width="10%" valign="top">
24 November 2017
</td>
<td align="left" width="10%" valign="top">
Friday
</td>
<td align="left" width="10%" valign="top">
9.00 am
</td>
<td align="left" width="10%" valign="top">
BA3201
</td>
<td align="left" width="40%" valign="top">
LIFE CONTINGENCIES AND DEMOGRAPHY
</td>
<td align="left" width="10%" valign="top">
3
</td>
<tr align="yes" valign="yes" bgcolor="#FFFFFF">
</table>
</body></html>
这样一个 html 文件,想导出到这样的 json 格式
{"AC1101":{"date":"21 April 2017","day":"Friday","time":"9.00 am","code":"AC1101","name":"ACCOUNTING I","duration":"2.5"},"AD1101":{"date":"21 April 2017","day":"Friday","time":"9.00 am","code":"AD1101","name":"FINANCIAL ACCOUNTING","duration":"2.5"},"BA2201":{"date":"21 April 2017","day":"Friday","time":"9.00 am","code":"BA2201","name":"ACTUARIAL ECONOMICS","duration":"2.5"}}
https://gist.github.com/wudaown/c4f46daa4bd6edc42b8d870fd77c7322
求助 bs4 如何导!不想用正则
谢谢