html2csv
html2csv is a utility that extracts tables from HTML documents and converts them to CSV format, written in Python.
Setup
Python 3 is required (version >=3.6). Install html2csv by pip.
pip install html-to-csv
Yes, the package name is html-to-csv due to collision ;-)
Examples
Input from the standard input, and output to the standard output.
html2csv
Input from a file, and output to the standard output.
html2csv example.html
Input from files, and output to a file.
html2csv example1.html example2.html -o output.csv
Input from the network, and output to the standard output.
html2csv http://example.com
Usage
usage: html2csv [-h] [-o [OUTPUT]] [-e ENGINE] [-V] [input [input ...]]
Convert HTML table to CSV format.
positional arguments:
input input sources (files, URLs, etc., default: standard
input)
optional arguments:
-h, --help show this help message and exit
-o [OUTPUT], --output [OUTPUT]
output target (default: standard output)
-e ENGINE, --engine ENGINE
HTML parser engine (default: html.parser or lxml if
installed)
-V, --version display version
Author and Contact
Wentao Han (wentao.han@gmail.com)
Metadata
Release files for html-to-csv 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 | Provenance | |
|---|---|---|---|---|
| html-to-csv-0.1.3.tar.gz | 3.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| html_to_csv-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / html-to-csv-0.1.3.tar.gz
| Download URL | html-to-csv-0.1.3.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6de36f4afb701e2d960429636e5b27f2c921cd4646c6064232af44f62d1a05f8
|
|
BLAKE2b-256 checksum How to use checksums |
e4c0c12ec45f34660440a128086addc9b605a14f93ee8f3c495ed0d56bed2bb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|
Release files / html_to_csv-0.1.3-py3-none-any.whl
| Download URL | html_to_csv-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
721f7be3488af50d1455888b0df71d9209c54db389a7149260de30be4024edbe
|
|
BLAKE2b-256 checksum How to use checksums |
7818c97082294c5104e8bb14819c57eed20a157402ba6deeaa147d7f352b9ef1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|
Security for html-to-csv 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.