Skip to main content

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)

Source distribution for dpk-html2parquet-transform-python 0.2.1
File Size Uploaded
dpk_html2parquet_transform_python-0.2.1.tar.gz 188.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dpk-html2parquet-transform-python 0.2.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page