Skip to content

HTML Table to JSON using Regular expression in Python 🐍

Notifications You must be signed in to change notification settings

humaid0x/html-table-to-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

HTML Table to JSON

Convert HTML Table to JSON objects using Python

Note: No rowspan and colspan attribute support !

Firstname Lastname Age
Jill Smith 50
Eve Jackson 94
John Doe 80

With Table Header

[
    {
        "firstname": "Jill",
        "lastname": "Smith",
        "age": "50"
    },
    {
        "firstname": "Eve",
        "lastname": "Jackson",
        "age": "94"
    },
    {
        "firstname": "John",
        "lastname": "Doe",
        "age": "80"
    }
]

Without Table Header

[
    [
        "Jill",
        "Smith",
        "50"
    ],
    [
        "Eve",
        "Jackson",
        "94"
    ],
    [
        "John",
        "Doe",
        "80"
    ]
]

About

HTML Table to JSON using Regular expression in Python 🐍

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages