Skip to main content

A utility that extracts tables from HTML documents and converts them to CSV format

Project description

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 ;-)

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

html-to-csv-0.1.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

html_to_csv-0.1.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file html-to-csv-0.1.2.tar.gz.

File metadata

  • Download URL: html-to-csv-0.1.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for html-to-csv-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5bc9fe6f0ccaec7d774df734b496eb25e1e20066b8a02719d32e8854ed911564
MD5 f276a4628e7b2ad34370b6a25cbf5658
BLAKE2b-256 5ad2cd5285fcde3236bc7ae7eb20ff5f3b7c89234ef263e30859266327ce5fc0

See more details on using hashes here.

File details

Details for the file html_to_csv-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: html_to_csv-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for html_to_csv-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 90b8b0e22c87a85e8ace8078bd3ce909463a64729f66c5f4906986e244c9029a
MD5 9072b9319f4f0b7975e2cfd3f8ca6f25
BLAKE2b-256 9dcf982e709189c886954a88e911c4701a91b58351376c6bd129371212eae44b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page