I need some help trying to convert multiple HTML tables to JSON in Python. I have the follwing:
[<table>\n<tr><th nowrap="">FRUIT</th><td>APPLE</td></tr>\n<tr><th nowrap="">COLOR</th><td>GREEN</td></tr>\n</table>, <table>\n<tr><th nowrap="">FRUIT</th><td>BANANA</td></tr>\n<tr><th nowrap="">COLOR</th><td>YELLOW</td></tr>\n</table>]
What I'm trying to achieve is to output it in JSON:
[
{
"FRUIT": "APPLE",
"COLOR": "GREEN"
},
{
"FRUIT": "BANANA",
"COLOR": "YELLOW"
}
]