getable
Parse HTML table to a 2d-array-like data structure.
Installation
pip install getable
Example
from getable import TableParser
html = """
<table id="table">
<thead>
<tr><th>Name</th><th>Age</th></tr>
</thead>
<tbody>
<tr><td>Alpha</td><td>10</td></tr>
<tr><td>Bravo</td><td>20</td></tr>
</tbody>
</table>
"""
parser = TableParser()
table = parser.parse(source=html, locator="#table")
for row in table:
for cell in row:
print(cell.text)
Metadata
Release files for getable 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| getable-0.1.3.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| getable-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.9 kB
Release files / getable-0.1.3.tar.gz
| Download URL | getable-0.1.3.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
168d89ba38261a8868f78c260873be98afddfe913c6e1fe718148eb44acb94fa
|
|
BLAKE2b-256 checksum How to use checksums |
02a7b892121c8a8f11cad8722f4f690b05b4219a5cd2457c3f9690c3001e1c65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / getable-0.1.3-py3-none-any.whl
| Download URL | getable-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7762fc8bcc6bc159280da2fab8c5243a1029fa4715d652a8a8c0902e2c639c2
|
|
BLAKE2b-256 checksum How to use checksums |
e8cd14d3f5eb0b37aeed28db33a106e19569ccaf123773dad3949db86c1ee6d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|