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

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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