html2parquet Transform
This tranforms iterate through zip of HTML files or single HTML files and generates parquet files containing the converted document in string.
The HTML conversion is using the Trafilatura.
Output format
The output format will contain the following colums
{
"title": "string" // the member filename
"document": "string" // the base of the source archive
"contents": "string" // the content of the HTML
"document_id": "string", // the document id, a hash of `contents`
"size": "string", // the size of `contents`
"date_acquired": "date", // the date when the transform was executing
}
Parameters
The transform can be initialized with the following parameters.
| Parameter | Default | Description |
|---|---|---|
output_format |
markdown |
The output type for the contents column. Valid types are markdown and text. |
When invoking the CLI, the parameters must be set as --html2parquet_<name>, e.g. --html2parquet_output_format='markdown'.
Metadata
Release files for dpk-html2parquet-transform-python 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dpk_html2parquet_transform_python-0.2.1.tar.gz | 188.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dpk_html2parquet_transform_python-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 194.8 kB
Release files / dpk_html2parquet_transform_python-0.2.1.tar.gz
| Download URL | dpk_html2parquet_transform_python-0.2.1.tar.gz |
|---|---|
| Size | 188.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64d51213f79ea9585774a17f339b3b4520253760812688068523de3f90d197a6
|
|
BLAKE2b-256 checksum How to use checksums |
0c0dc44d349a97566d1f8bbd0fb12fc85daa88aa078542fa47e436a2f15ac596
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / dpk_html2parquet_transform_python-0.2.1-py3-none-any.whl
| Download URL | dpk_html2parquet_transform_python-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
129be1bdcb075f6461bde10f2f7f2cda6935c1c2c4a177a739a4136685dbbcc7
|
|
BLAKE2b-256 checksum How to use checksums |
edd8c94e792190caafdf67212c8ee1f1c9093005c68ee8fe192e718868988300
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|