Convert HTML Table (with no rowspan/colspan) to JSON using Python
ID | Vendor | Product |
---|---|---|
1 | Intel | Processor |
2 | AMD | GPU |
3 | Gigabyte | Mainboard |
[
{
"product": "Processor",
"vendor": "Intel",
"id": "1"
},
{
"product": "GPU",
"vendor": "AMD",
"id": "2"
},
{
"product": "Mainboard",
"vendor": "Gigabyte",
"id": "3"
}
]
1 | Intel | Processor |
2 | AMD | GPU |
3 | Gigabyte | Mainboard |
[
[
"1",
"Intel",
"Processor"
],
[
"2",
"AMD",
"GPU"
],
[
"3",
"Gigabyte",
"Mainboard"
]
]
- Support for nested table
- Support for buggy HTML table (ie.
td
instead ofth
inthead
)